Skip to content

Commit c74ce8b

Browse files
authored
fix: clippy warnings (#318)
1 parent 7686338 commit c74ce8b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/skeleton/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ fn panic(_: &core::panic::PanicInfo) -> ! {
254254
let walker = GlobWalkerBuilder::from_patterns(
255255
target_directory,
256256
&[
257-
format!("/**/lib{}.*", library_name),
258-
format!("/**/lib{}-*", library_name),
257+
format!("/**/lib{library_name}.*"),
258+
format!("/**/lib{library_name}-*"),
259259
],
260260
)
261261
.build()?;

tests/skeletons.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ checksum = "3df10e9ed85b51fa3434bc5676eaa90479ce14ac3e101c8ce07e1bb5ef0b7255"
970970

971971
// Assert
972972
let lock_file = skeleton.lock_file.expect("there should be a lock_file");
973-
println!("{}", lock_file);
973+
println!("{lock_file}");
974974
assert!(lock_file.contains(
975975
r#"
976976
[[package]]
@@ -1694,7 +1694,7 @@ uuid = { version = "=0.8.0", features = ["v4"] }
16941694
.unwrap()
16951695
.contents
16961696
.split('=')
1697-
.last()
1697+
.next_back()
16981698
.unwrap()
16991699
.replace(['[', ']', '"'], "")
17001700
.trim()

0 commit comments

Comments
 (0)