summaryrefslogtreecommitdiff
path: root/examples/ext2.rs
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2021-12-24 04:28:30 -0600
committerAlejandro Soto <alejandro@34project.org>2021-12-24 04:34:19 -0600
commit7f3c0f5b69e76de03417c84d3d217c0bf866e5ec (patch)
tree8b11657b42384c97966ffe607c79a5903235fd7f /examples/ext2.rs
parentfc6f4052648a77a66f6bd50ffd1647992cb68b10 (diff)
Update dependencies
Diffstat (limited to 'examples/ext2.rs')
-rw-r--r--examples/ext2.rs7
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>> {