diff --git a/src/main.rs b/src/main.rs index a175822..091849f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,6 +39,7 @@ fn main() { Ok(_) => println!(), Err(e) => println!("Failed to show DB: {}", e), } + return; } if args.create != String::new() { @@ -89,7 +90,7 @@ fn create_note(content: &String, tag: &String) -> Result<()> { let connection = Connection::open(home)?; let date = Local::now(); let date_string = date.format("%m-%d-%y %H:%M").to_string(); - let tag_string = if tag.to_string() == String::new() { + let tag_string = if *tag == String::new() { String::from("quick") } else { tag.to_string()