imag-store: Replace .err().unwrap() with .unwrap_err()
This commit is contained in:
parent
85800e7758
commit
cd73be256b
5 changed files with 5 additions and 5 deletions
|
@ -38,7 +38,7 @@ pub fn create(rt: &Runtime) {
|
||||||
|
|
||||||
let path = build_entry_path(rt.store(), path.unwrap());
|
let path = build_entry_path(rt.store(), path.unwrap());
|
||||||
if path.is_err() {
|
if path.is_err() {
|
||||||
trace_error(&path.err().unwrap());
|
trace_error(&path.unwrap_err());
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
let path = path.unwrap();
|
let path = path.unwrap();
|
||||||
|
|
|
@ -14,7 +14,7 @@ pub fn delete(rt: &Runtime) {
|
||||||
.map(|id| {
|
.map(|id| {
|
||||||
let path = build_entry_path(rt.store(), id);
|
let path = build_entry_path(rt.store(), id);
|
||||||
if path.is_err() {
|
if path.is_err() {
|
||||||
trace_error(&path.err().unwrap());
|
trace_error(&path.unwrap_err());
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
let path = path.unwrap();
|
let path = path.unwrap();
|
||||||
|
|
|
@ -36,7 +36,7 @@ fn main() {
|
||||||
rt.unwrap()
|
rt.unwrap()
|
||||||
} else {
|
} else {
|
||||||
println!("Could not set up Runtime");
|
println!("Could not set up Runtime");
|
||||||
println!("{:?}", rt.err().unwrap());
|
println!("{:?}", rt.unwrap_err());
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -19,7 +19,7 @@ pub fn retrieve(rt: &Runtime) {
|
||||||
.map(|id| {
|
.map(|id| {
|
||||||
let path = build_entry_path(rt.store(), id);
|
let path = build_entry_path(rt.store(), id);
|
||||||
if path.is_err() {
|
if path.is_err() {
|
||||||
trace_error(&path.err().unwrap());
|
trace_error(&path.unwrap_err());
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
let path = path.unwrap();
|
let path = path.unwrap();
|
||||||
|
|
|
@ -16,7 +16,7 @@ pub fn update(rt: &Runtime) {
|
||||||
.map(|id| {
|
.map(|id| {
|
||||||
let path = build_entry_path(rt.store(), id);
|
let path = build_entry_path(rt.store(), id);
|
||||||
if path.is_err() {
|
if path.is_err() {
|
||||||
trace_error(&path.err().unwrap());
|
trace_error(&path.unwrap_err());
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
let path = path.unwrap();
|
let path = path.unwrap();
|
||||||
|
|
Loading…
Reference in a new issue