yoda: cargo clippy --fix on libcosmic-yoda (115→33 warnings)
Auto-applied clippy lint suggestions across 23 files: collapse
`else { if … }` ladders, drop unneeded `return` statements, remove
needless borrows that were immediately auto-dereffed, swap `iter().next()`
for `first()`, drop redundant `.into()` to the same type, and similar
mechanical cleanups. Behavior is unchanged; the diff is -67 lines net.
The 33 remaining warnings are architectural and need manual attention
(very-complex-type aliases, too-many-arguments on internal helpers,
redundant must_use, needs-is_empty, etc.).
Leyoda 2026 – GPLv3
This commit is contained in:
parent
999db0a4bd
commit
4743bb8ec9
23 changed files with 91 additions and 159 deletions
|
|
@ -171,18 +171,15 @@ impl Button {
|
|||
* TODO: Checkbox
|
||||
*/
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
#[derive(Default)]
|
||||
pub enum Checkbox {
|
||||
#[default]
|
||||
Primary,
|
||||
Secondary,
|
||||
Success,
|
||||
Danger,
|
||||
}
|
||||
|
||||
impl Default for Checkbox {
|
||||
fn default() -> Self {
|
||||
Self::Primary
|
||||
}
|
||||
}
|
||||
|
||||
impl iced_checkbox::Catalog for Theme {
|
||||
type Class<'a> = Checkbox;
|
||||
|
|
@ -1193,7 +1190,7 @@ impl scrollable::Catalog for Theme {
|
|||
background: Color::TRANSPARENT.into(),
|
||||
border: Border::default(),
|
||||
shadow: Shadow::default(),
|
||||
icon: Color::TRANSPARENT.into(),
|
||||
icon: Color::TRANSPARENT,
|
||||
},
|
||||
};
|
||||
let small_widget_container = self.current_container().small_widget.with_alpha(0.7);
|
||||
|
|
@ -1261,7 +1258,7 @@ impl scrollable::Catalog for Theme {
|
|||
background: Color::TRANSPARENT.into(),
|
||||
border: Border::default(),
|
||||
shadow: Shadow::default(),
|
||||
icon: Color::TRANSPARENT.into(),
|
||||
icon: Color::TRANSPARENT,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue