diff --git a/src/volume_mgr.rs b/src/volume_mgr.rs index 3f5f895..69573d1 100644 --- a/src/volume_mgr.rs +++ b/src/volume_mgr.rs @@ -94,9 +94,9 @@ where } /// Temporarily get access to the underlying block device. - pub fn device(&self, f: F) -> T + pub fn device(&self, f: F) -> R where - F: FnOnce(&mut D) -> T, + F: FnOnce(&mut D) -> R, { let mut data = self.data.borrow_mut(); let result = f(data.block_cache.block_device());