From 01c226f0ca201d12c740626fae52f1b27e99a369 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 18 Apr 2016 09:08:47 +0200 Subject: [PATCH] Revert change to unwrap_err() here, trait bounds not fulfilled --- libimagstore/src/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 87221253..445af899 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -434,7 +434,7 @@ impl Store { if guard.is_err() { return Err(StoreError::new(StoreErrorKind::HookRegisterError, - Some(Box::new(guard.unwrap_err())))); + Some(Box::new(guard.err().unwrap())))); } let mut guard = guard.unwrap(); for mut aspect in guard.deref_mut() {