chore: apply recommendations from clippy
This commit is contained in:
parent
cec55dafd7
commit
8e0f1c4a09
56 changed files with 720 additions and 824 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue