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.
2 parents c4b37f5 + c6fe9e1 commit 607657bCopy full SHA for 607657b
src/lib.rs
@@ -236,11 +236,7 @@ impl LoopDevice {
236
/// for further details) or when calling the ioctl to attach the backing
237
/// file to the device.
238
pub fn attach_file<P: AsRef<Path>>(&self, backing_file: P) -> io::Result<()> {
239
- let info = loop_info64 {
240
- ..Default::default()
241
- };
242
-
243
- Self::attach_with_loop_info(self, backing_file, info)
+ Self::attach_with_loop_info(self, backing_file, loop_info64::default())
244
}
245
246
/// Attach the loop device to a file with `loop_info64`.
0 commit comments