This commit is contained in:
Catto 2024-04-04 21:05:30 +02:00
parent 2691b59e87
commit 7b4228907d
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ fn main() {
Ok(_) => println!(), Ok(_) => println!(),
Err(e) => println!("Failed to show DB: {}", e), Err(e) => println!("Failed to show DB: {}", e),
} }
return;
} }
if args.create != String::new() { if args.create != String::new() {
@ -89,7 +90,7 @@ fn create_note(content: &String, tag: &String) -> Result<()> {
let connection = Connection::open(home)?; let connection = Connection::open(home)?;
let date = Local::now(); let date = Local::now();
let date_string = date.format("%m-%d-%y %H:%M").to_string(); 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") String::from("quick")
} else { } else {
tag.to_string() tag.to_string()