chore(theme): clippy cleanup

This commit is contained in:
Ashley Wulber 2024-02-26 18:41:58 -05:00 committed by Jeremy Soller
parent a09f4601ee
commit 09cd1a2319
2 changed files with 170 additions and 71 deletions

View file

@ -83,7 +83,7 @@ pub fn subscription(is_dark: bool) -> Subscription<crate::theme::Theme> {
cosmic_theme::LIGHT_THEME_ID
}
.into(),
crate::cosmic_theme::Theme::version(),
crate::cosmic_theme::Theme::VERSION,
)
.map(|res| {
for err in res.errors {
@ -166,7 +166,6 @@ pub struct Theme {
}
impl Theme {
#[must_use]
pub fn cosmic(&self) -> &cosmic_theme::Theme {
match self.theme_type {
ThemeType::Dark => &COSMIC_DARK,