Fix clippy warnings

This commit is contained in:
rhysd authored and David Peter committed 2021-10-17 17:03:36 +02:00
1 parent 1b7d139f21
commit f2bfedd3a6
3 files changed
+6 -4

No files matched your search

+4 -2
View File
@@ -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)?;