Skip to content

Commit 1d0f713

Browse files
author
the Mulhern
committed
clippy 1.88.0 fixes
Signed-off-by: the Mulhern <amulhern@amulhern.bos.csb>
1 parent f5630e3 commit 1d0f713

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl LoopControl {
118118
LOOP_CTL_GET_FREE as IoctlRequest,
119119
)
120120
})?;
121-
LoopDevice::open(format!("{}{}", LOOP_PREFIX, dev_num))
121+
LoopDevice::open(format!("{LOOP_PREFIX}{dev_num}"))
122122
}
123123

124124
/// Add and opens a new loop device.
@@ -144,7 +144,7 @@ impl LoopControl {
144144
n as c_int,
145145
)
146146
})?;
147-
LoopDevice::open(format!("{}{}", LOOP_PREFIX, dev_num))
147+
LoopDevice::open(format!("{LOOP_PREFIX}{dev_num}"))
148148
}
149149
}
150150

tests/integration_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fn get_next_free_device() {
1818

1919
assert_eq!(
2020
ld0.path(),
21-
Some(PathBuf::from(&format!("/dev/loop{}", num_devices_at_start))),
21+
Some(PathBuf::from(&format!("/dev/loop{num_devices_at_start}"))),
2222
"should find the first loopback device"
2323
);
2424
}

0 commit comments

Comments
 (0)