mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Fix clippy warnings
This commit is contained in:
1 parent
1b7d139f21
commit
f2bfedd3a6
3 files changed
+6
-4
No files matched your search
+4
-2
@@ -46,14 +46,16 @@ pub struct ExportManager {
|
||||
exporters: Vec<ExporterWithFilename>,
|
||||
}
|
||||
|
||||
impl ExportManager {
|
||||
impl Default for ExportManager {
|
||||
/// Create a new ExportManager
|
||||
pub fn new() -> ExportManager {
|
||||
fn default() -> ExportManager {
|
||||
ExportManager {
|
||||
exporters: Vec::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl ExportManager {
|
||||
/// Add an additional exporter to the ExportManager
|
||||
pub fn add_exporter(&mut self, export_type: ExportType, filename: &str) -> Result<()> {
|
||||
let _ = File::create(filename)?;
|
||||
|
||||
Reference in new issue
Block a user