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