summaryrefslogtreecommitdiff
path: root/examples/ext2.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/ext2.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/ext2.rs b/examples/ext2.rs
index 5552a58..4c55a64 100644
--- a/examples/ext2.rs
+++ b/examples/ext2.rs
@@ -16,6 +16,7 @@ use std::{
ffi::{CStr, OsStr},
fs::File,
mem::size_of,
+ ops::ControlFlow,
os::unix::{ffi::OsStrExt, io::AsRawFd},
path::{Path, PathBuf},
time::{Duration, UNIX_EPOCH},
@@ -502,7 +503,10 @@ async fn main_loop(session: Start, fs: Ext2) -> FuseResult<()> {
}
});
- result.await?;
+ match result.await? {
+ ControlFlow::Break(()) => break Ok(()),
+ ControlFlow::Continue(()) => continue,
+ }
}
}