summaryrefslogtreecommitdiff
path: root/src/fuse/mount.rs
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2021-12-27 00:44:23 -0600
committerAlejandro Soto <alejandro@34project.org>2021-12-28 19:43:44 -0600
commita3212a0ba07da7bdae9e17637fbc237e2ae01c08 (patch)
tree00be583beba0f321ebeea3af21582ce927943b44 /src/fuse/mount.rs
parent311b2a40213aa48131a189f99dc4258d354c0c78 (diff)
Redesign the API around a user-provided main loop
This is basically a full library rewrite.
Diffstat (limited to '')
-rw-r--r--src/fuse/mount.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/fuse/mount.rs b/src/fuse/mount.rs
index 955b28a..6464372 100644
--- a/src/fuse/mount.rs
+++ b/src/fuse/mount.rs
@@ -17,7 +17,7 @@ use nix::{
use quick_error::quick_error;
-use super::Start;
+use super::session::Start;
use crate::util::DumbFd;
quick_error! {
@@ -146,10 +146,8 @@ where
Ok(session_fd) => {
let fusermount_fd = DumbFd(left_side.into_raw_fd());
let session_fd = DumbFd(session_fd);
- Ok(Start {
- fusermount_fd,
- session_fd,
- })
+
+ Ok(Start::new(fusermount_fd, session_fd))
}
Err(error) => {