diff options
| author | Alejandro Soto <alejandro@34project.org> | 2021-12-24 04:28:30 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2021-12-24 04:34:19 -0600 |
| commit | 7f3c0f5b69e76de03417c84d3d217c0bf866e5ec (patch) | |
| tree | 8b11657b42384c97966ffe607c79a5903235fd7f /examples/ext2.rs | |
| parent | fc6f4052648a77a66f6bd50ffd1647992cb68b10 (diff) | |
Update dependencies
Diffstat (limited to '')
| -rw-r--r-- | examples/ext2.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/ext2.rs b/examples/ext2.rs index 01bbf4b..996d1fd 100644 --- a/examples/ext2.rs +++ b/examples/ext2.rs @@ -476,11 +476,8 @@ impl blown_fuse::fs::Inode for Inode { } } -fn early_error<T, E>(_: ()) -> Result<T, E> -where - nix::Error: Into<E>, -{ - Err(nix::Error::Sys(Errno::EINVAL).into()) +fn early_error<T, E: From<Errno>>(_: ()) -> Result<T, E> { + Err(Errno::EINVAL.into()) } fn main() -> Result<(), Box<dyn std::error::Error>> { |
