mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-31 08:40:18 +00:00
Fix clippy suggestions
This commit is contained in:
1 parent
b38bfc894c
commit
c44aa1d006
3 files changed
+13
-13
No files matched your search
+5
-5
@@ -80,11 +80,11 @@ impl ExportManager {
|
||||
/// Add an additional exporter to the ExportManager
|
||||
pub fn add_exporter(&mut self, export_type: ExportType, filename: &str) -> Result<()> {
|
||||
let exporter: Box<dyn Exporter> = match export_type {
|
||||
ExportType::Asciidoc => Box::new(AsciidocExporter::default()),
|
||||
ExportType::Csv => Box::new(CsvExporter::default()),
|
||||
ExportType::Json => Box::new(JsonExporter::default()),
|
||||
ExportType::Markdown => Box::new(MarkdownExporter::default()),
|
||||
ExportType::Orgmode => Box::new(OrgmodeExporter::default()),
|
||||
ExportType::Asciidoc => Box::<AsciidocExporter>::default(),
|
||||
ExportType::Csv => Box::<CsvExporter>::default(),
|
||||
ExportType::Json => Box::<JsonExporter>::default(),
|
||||
ExportType::Markdown => Box::<MarkdownExporter>::default(),
|
||||
ExportType::Orgmode => Box::<OrgmodeExporter>::default(),
|
||||
};
|
||||
|
||||
self.exporters.push(ExporterWithFilename {
|
||||
|
||||
Reference in new issue
Block a user