Fix Option::unwrap_err.
This commit is contained in:
parent
baa4379e5a
commit
50902bb302
1 changed files with 1 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ impl<T, E> Result<T, E> {
|
|||
pure fn unwrap(self) -> T { unwrap(self) }
|
||||
|
||||
#[inline(always)]
|
||||
pure fn unwrap_err(self) -> T { unwrap(self) }
|
||||
pure fn unwrap_err(self) -> E { unwrap_err(self) }
|
||||
|
||||
#[inline(always)]
|
||||
pure fn chain<U>(self, op: fn(T) -> Result<U,E>) -> Result<U,E> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue