Fix clippy unnecessary_map_or warning

Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
This commit is contained in:
google-labs-jules[bot] 2026-10-07 04:22:48 +00:00
parent f65806403a
commit d812f65cfd

View file

@ -938,7 +938,7 @@ fn load_extensions(app: AppHandle) -> Vec<ExtensionScript> {
} }
fn is_sheet_path(path: &str) -> bool { 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(); let ext = ext.to_string_lossy().to_lowercase();
ext == "numi" || ext == "sum" ext == "numi" || ext == "sum"
}) })