Skip to content

Commit d8f5c26

Browse files
authored
Merge pull request #57 from mulkieran/clippy-1.88.0
clippy 1.88.0 fixes
2 parents f5630e3 + 1d0f713 commit d8f5c26

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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)