clippy: Fix warnings

This commit is contained in:
Sophie Herold 2025-12-19 00:04:27 +01:00
parent 45fc2ca051
commit e9389a3a18
2 changed files with 3 additions and 3 deletions

View file

@ -117,7 +117,7 @@ impl Tile {
snapshot.append_scaled_texture(&self.texture, options.scaling_filter, &area_with_bleed); snapshot.append_scaled_texture(&self.texture, options.scaling_filter, &area_with_bleed);
snapshot.pop(); snapshot.pop();
if std::env::var_os("LOUPE_TILING_DEBUG").is_some_and(|x| x.len() > 0) { if std::env::var_os("LOUPE_TILING_DEBUG").is_some_and(|x| !x.is_empty()) {
snapshot.append_inset_shadow( snapshot.append_inset_shadow(
&gsk::RoundedRect::from_rect(area, 0.), &gsk::RoundedRect::from_rect(area, 0.),
&gdk::RGBA::new(1., 0., 0., 0.7), &gdk::RGBA::new(1., 0., 0., 0.7),

View file

@ -922,7 +922,7 @@ impl LpImageWindow {
} }
fn on_fullscreen_changed(&self) { fn on_fullscreen_changed(&self) {
let is_fullscreen = self.try_window().map_or(false, |w| w.is_fullscreen()); let is_fullscreen = self.try_window().is_some_and(|w| w.is_fullscreen());
let icon = if is_fullscreen { let icon = if is_fullscreen {
"view-restore-symbolic" "view-restore-symbolic"
@ -948,7 +948,7 @@ impl LpImageWindow {
} }
fn is_content_extended_to_top(&self) -> bool { fn is_content_extended_to_top(&self) -> bool {
self.try_window().map_or(false, |w| w.is_fullscreen()) self.try_window().is_some_and(|w| w.is_fullscreen())
&& !self.imp().properties_button.is_active() && !self.imp().properties_button.is_active()
} }