diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/errno.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/errno.rs b/src/errno.rs index 8e3a924b..2be3179c 100644 --- a/src/errno.rs +++ b/src/errno.rs @@ -103,6 +103,7 @@ impl Errno { /// Returns `Ok(value)` if it does not contain the sentinel value. This /// should not be used when `-1` is not the errno sentinel value. + #[inline] pub fn result<S: ErrnoSentinel + PartialEq<S>>(value: S) -> Result<S> { if value == S::sentinel() { Err(Self::last()) |