summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/domain/imag-notes/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/domain/imag-notes/src/lib.rs b/bin/domain/imag-notes/src/lib.rs
index c2d7b372..f84f1dc2 100644
--- a/bin/domain/imag-notes/src/lib.rs
+++ b/bin/domain/imag-notes/src/lib.rs
@@ -113,7 +113,7 @@ fn name_from_cli(rt: &Runtime, subcmd: &str) -> String {
fn create(rt: &Runtime) -> Result<()> {
let name = name_from_cli(rt, "create");
- let mut note = rt.store().new_note(name.clone(), String::new())?;
+ let mut note = rt.store().new_note(name, String::new())?;
if rt.cli().subcommand_matches("create").unwrap().is_present("edit") {
note.edit_content(rt)?