some clippy fixes

This commit is contained in:
Chris Cochrun 2025-09-26 14:05:57 -05:00
parent 3b1a0c4207
commit 46abd9dd7a
13 changed files with 54 additions and 85 deletions

View file

@ -765,7 +765,7 @@ impl cosmic::Application for App {
})
}
song_editor::Action::UpdateSong(song) => {
if let Some(_) = &mut self.library {
if self.library.is_some() {
self.update(Message::Library(
library::Message::UpdateSong(song),
))
@ -786,7 +786,7 @@ impl cosmic::Application for App {
})
}
image_editor::Action::UpdateImage(image) => {
if let Some(_) = &mut self.library {
if self.library.is_some() {
self.update(Message::Library(
library::Message::UpdateImage(image),
))
@ -807,7 +807,7 @@ impl cosmic::Application for App {
})
}
video_editor::Action::UpdateVideo(video) => {
if let Some(_) = &mut self.library {
if self.library.is_some() {
self.update(Message::Library(
library::Message::UpdateVideo(video),
))
@ -1732,8 +1732,7 @@ where
moved_item_overlay: Color::from(
t.cosmic().primary.base,
)
.scale_alpha(0.2)
.into(),
.scale_alpha(0.2),
ghost_border: Border {
width: 1.0,
color: t.cosmic().secondary.base.into(),