Skip to content

Commit

Permalink
Fix with older compilers, part II
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Nov 21, 2018
1 parent 9fb4f03 commit a6df3b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl Error {
/// assert_eq!(Some(Errno::EPERM), e.as_errno());
/// ```
pub fn as_errno(&self) -> Option<Errno> {
if let Error::Sys(ref e) = self {
if let &Error::Sys(ref e) = self {
Some(*e)
} else {
None
Expand Down

0 comments on commit a6df3b7

Please sign in to comment.