Skip to content

Commit e1047ca

Browse files
committed
fix clippy
1 parent 28ce819 commit e1047ca

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src-tauri/src/open.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,7 @@ pub async fn open_query_file(app: AppHandle, window: Window) {
150150
FilePath::Url(_) => None,
151151
FilePath::Path(buf) => Some(buf.display().to_string()),
152152
})
153-
.filter_map(|f| match url::Url::from_file_path(f) {
154-
Ok(u) => Some(u),
155-
Err(_) => None,
156-
})
153+
.filter_map(|f| url::Url::from_file_path(f).ok())
157154
.collect();
158155

159156
info!("My paths: {:?}", urls);

0 commit comments

Comments
 (0)