diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-01-04 06:54:01 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-01-04 06:54:01 -0600 |
| commit | 2236d258859018a93b14504295385ad4fb0b3d9b (patch) | |
| tree | cf8f65635ffc3cdea5c2755f20859676b855e790 /src/util.rs | |
| parent | 70baa472b2bee69f205cc1aada304d597b858005 (diff) | |
Move error types to new module crate::error
Diffstat (limited to '')
| -rw-r--r-- | src/util.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/util.rs b/src/util.rs index 5da19c8..88d6ee1 100644 --- a/src/util.rs +++ b/src/util.rs @@ -4,21 +4,6 @@ use std::{ }; use nix::unistd::{close, sysconf, SysconfVar}; -use quick_error::quick_error; - -quick_error! { - #[derive(Debug)] - pub enum FuseError { - Io(err: std::io::Error) { from() } - ProtocolInit { display("fuse handshake failed (ancient kernel?)") } - Truncated { display("fuse request truncated") } - BadOpcode { display("unknown fuse operation") } - BadLength { display("bad length in fuse request") } - ShortWrite { display("fuse reply was trimmed on write()") } - } -} - -pub type FuseResult<T> = Result<T, FuseError>; pub struct DumbFd(pub RawFd); |
