From d7e96928fb0fd40999f9bba304fb2c580f34b7ae Mon Sep 17 00:00:00 2001 From: David Peter Date: Sun, 6 Feb 2022 18:01:43 +0100 Subject: [PATCH] Fix format call --- src/export/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()),