Rust 1.88.0 (#85)
* Rust 1.88.0 * nix flake update * cargo upgrade * lint all `uninlined_format_args` related @see https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user