Skip to content

Commit 614da3e

Browse files
authored
Merge pull request #196 from fko-kuptec/fix-volume-manager-device-result
Fix missing type parameter in VolumeManager::device
2 parents b97b4f1 + f2b41b9 commit 614da3e

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)