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 => {
|
ClockTypeId::Timer => {
|
||||||
format!("{name} stopped by reaching its maximum value.")
|
format!("{name} stopped by reaching its maximum value.")
|
||||||
}
|
}
|
||||||
_ => format!("{:?} {name} done!", type_id),
|
_ => format!("{type_id:?} {name} done!"),
|
||||||
};
|
};
|
||||||
// notification
|
// notification
|
||||||
let result = notify_rust::Notification::new()
|
let result = notify_rust::Notification::new()
|
||||||
|
|||||||
@@ -319,7 +319,7 @@ fn human_days_diff(a: &OffsetDateTime, b: &OffsetDateTime) -> String {
|
|||||||
match days_diff {
|
match days_diff {
|
||||||
0 => "today".to_owned(),
|
0 => "today".to_owned(),
|
||||||
1 => "tomorrow".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();
|
let mut style = Style::default();
|
||||||
// Add space for all except last
|
// Add space for all except last
|
||||||
let label = if index < content_labels.len() - 1 {
|
let label = if index < content_labels.len() - 1 {
|
||||||
format!("{} ", label)
|
format!("{label} ")
|
||||||
} else {
|
} else {
|
||||||
label.to_string()
|
label.to_string()
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user