Skip to content

Commit 6467a03

Browse files
committed
Fix clippy lints
1 parent f3bc83d commit 6467a03

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/install.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl UnixLibNames {
131131
"{}.{}.{}.{}",
132132
lib, lib_version.major, lib_version.minor, lib_version.patch
133133
);
134-
let lib_with_main_ver = format!("{}.{}", lib, main_version);
134+
let lib_with_main_ver = format!("{lib}.{main_version}");
135135

136136
Some(Self {
137137
canonical: lib,
@@ -141,7 +141,7 @@ impl UnixLibNames {
141141
}
142142
LibType::Dylib => {
143143
let lib = format!("lib{lib_name}.dylib");
144-
let lib_with_main_ver = format!("lib{}.{}.dylib", lib_name, main_version);
144+
let lib_with_main_ver = format!("lib{lib_name}.{main_version}.dylib");
145145

146146
let lib_with_full_ver = format!(
147147
"lib{}.{}.{}.{}.dylib",

src/pkg_config_gen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ impl PkgConfig {
260260

261261
if !self.requires_private.is_empty() {
262262
let joined = self.requires_private.join(", ");
263-
writeln!(w, "Requires.private: {}", joined)?;
263+
writeln!(w, "Requires.private: {joined}")?;
264264
}
265265

266266
Ok(w)

0 commit comments

Comments
 (0)