Skip to content

Commit 1104a12

Browse files
antonok-edmAfoHT
authored andcommitted
address clippy::uninlined_format_args
1 parent 42ebfe5 commit 1104a12

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

rtic-macros/src/codegen/bindings/riscv_slic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub fn pre_init_preprocessing(app: &mut App, _analysis: &SyntaxAnalysis) -> pars
8181
.collect::<HashSet<_>>();
8282

8383
for i in 0..soft_priorities.len() {
84-
let dispatcher_ident = Ident::new(&format!("__RTICDispatcher{}", i), Span::call_site());
84+
let dispatcher_ident = Ident::new(&format!("__RTICDispatcher{i}"), Span::call_site());
8585
app.args
8686
.dispatchers
8787
.insert(dispatcher_ident, Dispatcher { attrs: vec![] });

rtic-monotonics/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn stm32() {
5757
println!("{}", p.name);
5858
let port_letter = p.name.strip_prefix("GPIO").unwrap();
5959
for pin_num in 0..16 {
60-
singletons.push(format!("P{}{}", port_letter, pin_num));
60+
singletons.push(format!("P{port_letter}{pin_num}"));
6161
}
6262
}
6363

rtic/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fn main() {
1313
})
1414
.collect();
1515
if backends.len() > 1 {
16-
panic!("More than one backend feature selected: {:?}", backends);
16+
panic!("More than one backend feature selected: {backends:?}");
1717
}
1818
let backend = backends.pop().expect("No backend feature selected.");
1919

@@ -34,7 +34,7 @@ fn main() {
3434
println!("cargo:rustc-cfg=feature=\"riscv-slic\"");
3535
}
3636
_ => {
37-
panic!("Unknown backend feature: {:?}", backend);
37+
panic!("Unknown backend feature: {backend:?}");
3838
}
3939
}
4040

0 commit comments

Comments
 (0)