mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 21:05:35 +01:00
address clippy::uninlined_format_args
This commit is contained in:
parent
42ebfe57f1
commit
1104a12ca3
3 changed files with 4 additions and 4 deletions
|
|
@ -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![] });
|
||||
|
|
|
|||
|
|
@ -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}"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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:?}");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue