mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-10 15:42:01 +03:00
Fix clippy unnecessary_map_or warning
Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
This commit is contained in:
parent
f65806403a
commit
d812f65cfd
1 changed files with 1 additions and 1 deletions
|
|
@ -938,7 +938,7 @@ fn load_extensions(app: AppHandle) -> Vec<ExtensionScript> {
|
|||
}
|
||||
|
||||
fn is_sheet_path(path: &str) -> bool {
|
||||
std::path::Path::new(path).extension().map_or(false, |ext| {
|
||||
std::path::Path::new(path).extension().is_some_and(|ext| {
|
||||
let ext = ext.to_string_lossy().to_lowercase();
|
||||
ext == "numi" || ext == "sum"
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue