summaryrefslogtreecommitdiff
path: root/src/fuse/mount.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 /src/fuse/mount.rs
parentfc6f4052648a77a66f6bd50ffd1647992cb68b10 (diff)
Update dependencies
Diffstat (limited to '')
-rw-r--r--src/fuse/mount.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fuse/mount.rs b/src/fuse/mount.rs
index ebf7e5d..955b28a 100644
--- a/src/fuse/mount.rs
+++ b/src/fuse/mount.rs
@@ -1,5 +1,6 @@
use std::{
ffi::{OsStr, OsString},
+ io,
os::unix::{
ffi::OsStrExt,
io::{AsRawFd, IntoRawFd, RawFd},
@@ -17,7 +18,7 @@ use nix::{
use quick_error::quick_error;
use super::Start;
-use crate::util::{from_nix_error, DumbFd};
+use crate::util::DumbFd;
quick_error! {
#[derive(Debug)]
@@ -131,7 +132,7 @@ where
Some(&mut buffer),
MsgFlags::empty(),
)
- .map_err(from_nix_error)?;
+ .map_err(io::Error::from)?;
let session_fd = match message.cmsgs().next() {
Some(ControlMessageOwned::ScmRights(fds)) => fds.into_iter().next(),