imag-notes: Replace .err().unwrap() with .unwrap_err()
This commit is contained in:
parent
da3b463ff0
commit
85800e7758
1 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ fn main() {
|
|||
rt.unwrap()
|
||||
} else {
|
||||
println!("Could not set up Runtime");
|
||||
println!("{:?}", rt.err().unwrap());
|
||||
println!("{:?}", rt.unwrap_err());
|
||||
exit(1);
|
||||
}
|
||||
};
|
||||
|
@ -81,7 +81,7 @@ fn edit(rt: &Runtime) {
|
|||
fn edit_entry(rt: &Runtime, name: String) -> bool {
|
||||
let note = Note::retrieve(rt.store(), name);
|
||||
if note.is_err() {
|
||||
trace_error(¬e.err().unwrap());
|
||||
trace_error(¬e.unwrap_err());
|
||||
warn!("Cannot edit nonexistent Note");
|
||||
return false
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ fn list(rt: &Runtime) {
|
|||
|
||||
let iter = Note::all_notes(rt.store());
|
||||
if iter.is_err() {
|
||||
trace_error(&iter.err().unwrap());
|
||||
trace_error(&iter.unwrap_err());
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue