Fix unwrap_hard when debug_assertions is set

This commit is contained in:
Joachim Viide
2019-02-20 23:55:25 +02:00
committed by Surma
parent 36f86385a2
commit 484ff7ab4c

View File

@@ -18,7 +18,7 @@ impl<T> HardUnwrap<T> for Option<T> {
#[cfg(debug_assertions)]
fn unwrap_hard(self) -> T {
o.unwrap()
self.unwrap()
}
}