Revert change to unwrap_err() here, trait bounds not fulfilled

This commit is contained in:
Matthias Beyer 2016-04-18 09:08:47 +02:00
parent 0bb40fca11
commit 01c226f0ca

View file

@ -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() {