We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b97b4f1 commit f2b41b9Copy full SHA for f2b41b9
src/volume_mgr.rs
@@ -94,9 +94,9 @@ where
94
}
95
96
/// Temporarily get access to the underlying block device.
97
- pub fn device<F>(&self, f: F) -> T
+ pub fn device<R, F>(&self, f: F) -> R
98
where
99
- F: FnOnce(&mut D) -> T,
+ F: FnOnce(&mut D) -> R,
100
{
101
let mut data = self.data.borrow_mut();
102
let result = f(data.block_cache.block_device());
0 commit comments