Skip to content

Commit f2b41b9

Browse files
committed
Fix returning wrong type parameter
1 parent b97b4f1 commit f2b41b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/volume_mgr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ where
9494
}
9595

9696
/// Temporarily get access to the underlying block device.
97-
pub fn device<F>(&self, f: F) -> T
97+
pub fn device<R, F>(&self, f: F) -> R
9898
where
99-
F: FnOnce(&mut D) -> T,
99+
F: FnOnce(&mut D) -> R,
100100
{
101101
let mut data = self.data.borrow_mut();
102102
let result = f(data.block_cache.block_device());

0 commit comments

Comments
 (0)