imag-store: Replace .err().unwrap() with .unwrap_err()

This commit is contained in:
Matthias Beyer 2016-04-17 21:07:39 +02:00
parent 85800e7758
commit cd73be256b
5 changed files with 5 additions and 5 deletions

View file

@ -38,7 +38,7 @@ pub fn create(rt: &Runtime) {
let path = build_entry_path(rt.store(), path.unwrap());
if path.is_err() {
trace_error(&path.err().unwrap());
trace_error(&path.unwrap_err());
exit(1);
}
let path = path.unwrap();

View file

@ -14,7 +14,7 @@ pub fn delete(rt: &Runtime) {
.map(|id| {
let path = build_entry_path(rt.store(), id);
if path.is_err() {
trace_error(&path.err().unwrap());
trace_error(&path.unwrap_err());
exit(1);
}
let path = path.unwrap();

View file

@ -36,7 +36,7 @@ fn main() {
rt.unwrap()
} else {
println!("Could not set up Runtime");
println!("{:?}", rt.err().unwrap());
println!("{:?}", rt.unwrap_err());
exit(1);
}
};

View file

@ -19,7 +19,7 @@ pub fn retrieve(rt: &Runtime) {
.map(|id| {
let path = build_entry_path(rt.store(), id);
if path.is_err() {
trace_error(&path.err().unwrap());
trace_error(&path.unwrap_err());
exit(1);
}
let path = path.unwrap();

View file

@ -16,7 +16,7 @@ pub fn update(rt: &Runtime) {
.map(|id| {
let path = build_entry_path(rt.store(), id);
if path.is_err() {
trace_error(&path.err().unwrap());
trace_error(&path.unwrap_err());
exit(1);
}
let path = path.unwrap();