summaryrefslogtreecommitdiff
path: root/rust-src/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust-src/src')
-rw-r--r--rust-src/src/cmd_mount.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/rust-src/src/cmd_mount.rs b/rust-src/src/cmd_mount.rs
index af830d77..5c7f6fbb 100644
--- a/rust-src/src/cmd_mount.rs
+++ b/rust-src/src/cmd_mount.rs
@@ -101,11 +101,11 @@ fn mount(
mount_inner(device, target, "bcachefs", mountflags, data)
}
-fn read_super_silent(path: &std::path::PathBuf) -> std::io::Result<bch_sb_handle> {
+fn read_super_silent(path: &std::path::PathBuf) -> anyhow::Result<bch_sb_handle> {
// Stop libbcachefs from spamming the output
let _gag = gag::BufferRedirect::stdout().unwrap();
- bch_bindgen::rs::read_super(&path)?
+ bch_bindgen::rs::read_super(&path)
}
fn get_devices_by_uuid(uuid: Uuid) -> anyhow::Result<Vec<(PathBuf, bch_sb_handle)>> {
@@ -182,7 +182,7 @@ fn cmd_mount_inner(opt: Cli) -> anyhow::Result<()> {
for dev in opt.dev.split(':') {
let dev = PathBuf::from(dev);
- sbs.push(bch_bindgen::rs::read_super(&dev)??);
+ sbs.push(bch_bindgen::rs::read_super(&dev)?);
}
(opt.dev, sbs)