code: Fix clippy warnings

This commit is contained in:
Sophie Herold 2025-01-13 15:02:01 +01:00
parent 70e18de073
commit 2adefc5241
5 changed files with 10 additions and 10 deletions

View file

@ -210,7 +210,7 @@ impl imp::LpImage {
let obj = self.obj().to_owned();
// current file got replaced with a new one
let file_replace = obj.file().map_or(false, |x| x.equal(&file));
let file_replace = obj.file().is_some_and(|x| x.equal(&file));
if file_replace {
log::debug!("Image got replaced {}", file.uri());
// TODO: error handling is missing