whoops
This commit is contained in:
parent
2691b59e87
commit
7b4228907d
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue