all `uninlined_format_args` related
@see https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
This commit is contained in:
jk
2025-06-28 11:31:30 +02:00
parent b163fdd4e4
commit 78f5269dd6
3 changed files with 3 additions and 3 deletions

View File

@@ -276,7 +276,7 @@ impl App {
ClockTypeId::Timer => {
format!("{name} stopped by reaching its maximum value.")
}
_ => format!("{:?} {name} done!", type_id),
_ => format!("{type_id:?} {name} done!"),
};
// notification
let result = notify_rust::Notification::new()

View File

@@ -319,7 +319,7 @@ fn human_days_diff(a: &OffsetDateTime, b: &OffsetDateTime) -> String {
match days_diff {
0 => "today".to_owned(),
1 => "tomorrow".to_owned(),
n => format!("+{}days", n),
n => format!("+{n}days"),
}
}

View File

@@ -89,7 +89,7 @@ impl StatefulWidget for Footer {
let mut style = Style::default();
// Add space for all except last
let label = if index < content_labels.len() - 1 {
format!("{} ", label)
format!("{label} ")
} else {
label.to_string()
};