diff --git a/src/export/mod.rs b/src/export/mod.rs index 28c9af2..1c72c7d 100644 --- a/src/export/mod.rs +++ b/src/export/mod.rs @@ -53,7 +53,7 @@ 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) - .with_context(|| format!("Could not create export file '{filename}'"))?; + .with_context(|| format!("Could not create export file '{}'", filename))?; let exporter: Box = match export_type { ExportType::Asciidoc => Box::new(AsciidocExporter::default()),