diff --git a/cli/src/commands/mod.rs b/cli/src/commands/mod.rs index 51187fd..1e5cacc 100644 --- a/cli/src/commands/mod.rs +++ b/cli/src/commands/mod.rs @@ -72,7 +72,7 @@ impl LocalAttachmentPath { self.ensure_parent_dir_exists()?; if !self.path().is_file() { - let f = File::create(&self.path()).expect("Could not create attachment output file"); + let f = File::create(self.path()).expect("Could not create attachment output file"); let mut buf_writer = BufWriter::new(f); buf_writer.write_all(&buf_to_write)?;