use inline format args (clippy::uninlined_format_args)
This commit is contained in:
parent
1ffd464c21
commit
550f6c8284
5 changed files with 5 additions and 5 deletions
|
|
@ -263,7 +263,7 @@ impl Window {
|
|||
|
||||
fn set_scale_factor(&mut self, factor: f32) {
|
||||
self.scale_factor = factor as f64;
|
||||
self.scale_factor_string = format!("{:.2}", factor);
|
||||
self.scale_factor_string = format!("{factor:.2}");
|
||||
}
|
||||
|
||||
fn sub_page_button<Message: Clone + From<Page> + 'static>(
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@ impl State {
|
|||
column![].spacing(10).align_items(Alignment::Center),
|
||||
|row, theme| {
|
||||
row.push(radio(
|
||||
format!("{:?}", theme),
|
||||
format!("{theme:?}"),
|
||||
theme,
|
||||
if ThemeVariant::from(&window.theme.theme_type) == theme {
|
||||
Some(theme)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue