address clippy::uninlined_format_args

This commit is contained in:
Anton Lazarev 2025-06-29 22:31:49 -07:00 committed by Henrik Tjäder
parent 42ebfe57f1
commit 1104a12ca3
3 changed files with 4 additions and 4 deletions

View file

@ -81,7 +81,7 @@ pub fn pre_init_preprocessing(app: &mut App, _analysis: &SyntaxAnalysis) -> pars
.collect::<HashSet<_>>();
for i in 0..soft_priorities.len() {
let dispatcher_ident = Ident::new(&format!("__RTICDispatcher{}", i), Span::call_site());
let dispatcher_ident = Ident::new(&format!("__RTICDispatcher{i}"), Span::call_site());
app.args
.dispatchers
.insert(dispatcher_ident, Dispatcher { attrs: vec![] });

View file

@ -57,7 +57,7 @@ fn stm32() {
println!("{}", p.name);
let port_letter = p.name.strip_prefix("GPIO").unwrap();
for pin_num in 0..16 {
singletons.push(format!("P{}{}", port_letter, pin_num));
singletons.push(format!("P{port_letter}{pin_num}"));
}
}

View file

@ -13,7 +13,7 @@ fn main() {
})
.collect();
if backends.len() > 1 {
panic!("More than one backend feature selected: {:?}", backends);
panic!("More than one backend feature selected: {backends:?}");
}
let backend = backends.pop().expect("No backend feature selected.");
@ -34,7 +34,7 @@ fn main() {
println!("cargo:rustc-cfg=feature=\"riscv-slic\"");
}
_ => {
panic!("Unknown backend feature: {:?}", backend);
panic!("Unknown backend feature: {backend:?}");
}
}