diff options
Diffstat (limited to 'src/errno.rs')
-rw-r--r-- | src/errno.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/errno.rs b/src/errno.rs index 2be3179c..3da246e8 100644 --- a/src/errno.rs +++ b/src/errno.rs @@ -72,8 +72,9 @@ impl Errno { since = "0.22.0", note = "It's a no-op now; just delete it." )] + #[allow(clippy::wrong_self_convention)] // False positive pub fn from_errno(errno: Errno) -> Error { - Error::from(errno) + errno } /// Create a new invalid argument error (`EINVAL`) |