remove useless 'format' calls

This commit is contained in:
daniel.eades 2023-11-16 17:57:14 +00:00 committed by Ashley Wulber
parent 95833242d7
commit c085758d20
2 changed files with 2 additions and 2 deletions

View file

@ -522,7 +522,7 @@ impl cosmic::Application for CosmicNetworkApplet {
);
}
ActiveConnectionState::Activated => btn_content.push(
text(format!("{}", fl!("connected")))
text(fl!("connected").to_string())
.size(14)
.horizontal_alignment(Horizontal::Right)
.vertical_alignment(Vertical::Center)

View file

@ -521,6 +521,6 @@ fn duration_ago_msg(notification: &Notification) -> String {
fl!("minutes-ago", HashMap::from_iter(vec![("duration", min)]))
}
} else {
format!("")
String::new()
}
}