src: Format let-else statements
This commit is contained in:
parent
6297dcf54b
commit
06d688e79e
6 changed files with 48 additions and 16 deletions
|
|
@ -242,7 +242,9 @@ impl LpFileModel {
|
|||
}
|
||||
|
||||
fn is_image_file(file: &gio::File) -> bool {
|
||||
let Ok(info) = util::query_attributes(file, vec![gio::FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE]) else {
|
||||
let Ok(info) =
|
||||
util::query_attributes(file, vec![gio::FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE])
|
||||
else {
|
||||
log::warn!("Could not query file info: {}", file.uri());
|
||||
return false;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue