chore: apply recommendations from clippy

This commit is contained in:
Cheong Lau 2025-10-04 10:51:18 +10:00 committed by GitHub
parent cec55dafd7
commit 8e0f1c4a09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
56 changed files with 720 additions and 824 deletions

View file

@ -199,7 +199,7 @@ impl cosmic::Application for Window {
Task::none()
}
fn view(&self) -> Element<Self::Message> {
fn view(&self) -> Element<'_, Self::Message> {
let input_source_text = self.core.applet.text(
self.active_layouts
.first()
@ -233,7 +233,7 @@ impl cosmic::Application for Window {
.into()
}
fn view_window(&self, _id: Id) -> Element<Self::Message> {
fn view_window(&self, _id: Id) -> Element<'_, Self::Message> {
let Spacing {
space_xxs, space_s, ..
} = theme::active().cosmic().spacing;
@ -294,7 +294,7 @@ impl Window {
.chain(std::iter::repeat(""));
'outer: for (layout, variant) in layouts.zip(variants) {
println!("{} : {}", layout, variant);
println!("{layout} : {variant}");
for xkb_layout in &self.layouts {
if layout != xkb_layout.name() {
continue;