code: Fix clippy warnings
This commit is contained in:
parent
70e18de073
commit
2adefc5241
5 changed files with 10 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue