Skip to content

Commit c19278a

Browse files
authored
Fix new clippy warning uninlined_format_args (#2224)
1 parent 19bd155 commit c19278a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

crates/tools/gnu/src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ fn build_library(output: &std::path::Path, dlltool: &str, library: &str, functio
6363
def.write_all(
6464
format!(
6565
r#"
66-
LIBRARY {}
66+
LIBRARY {library}
6767
EXPORTS
68-
"#,
69-
library
68+
"#
7069
)
7170
.as_bytes(),
7271
)

crates/tools/msvc/src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,9 @@ fn build_library(output: &std::path::Path, library: &str, functions: &BTreeMap<S
8787
def.write_all(
8888
format!(
8989
r#"
90-
LIBRARY {}
90+
LIBRARY {library}
9191
EXPORTS
92-
"#,
93-
library
92+
"#
9493
)
9594
.as_bytes(),
9695
)

0 commit comments

Comments
 (0)