File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ impl ClojureExtension {
1616 }
1717
1818 if let Some ( path) = & self . cached_binary_path {
19- if fs:: metadata ( path) . map_or ( false , |stat| stat. is_file ( ) ) {
19+ if fs:: metadata ( path) . is_ok_and ( |stat| stat. is_file ( ) ) {
2020 return Ok ( path. clone ( ) ) ;
2121 }
2222 }
@@ -53,12 +53,12 @@ impl ClojureExtension {
5353 . assets
5454 . iter ( )
5555 . find ( |asset| asset. name == asset_name)
56- . ok_or_else ( || format ! ( "no asset found matching {:?}" , asset_name ) ) ?;
56+ . ok_or_else ( || format ! ( "no asset found matching {asset_name :?}" ) ) ?;
5757
5858 let version_dir = format ! ( "clojure-lsp-{}" , release. version) ;
5959 let binary_path = format ! ( "{version_dir}/clojure-lsp" ) ;
6060
61- if !fs:: metadata ( & binary_path) . map_or ( false , |stat| stat. is_file ( ) ) {
61+ if !fs:: metadata ( & binary_path) . is_ok_and ( |stat| stat. is_file ( ) ) {
6262 zed:: set_language_server_installation_status (
6363 language_server_id,
6464 & zed:: LanguageServerInstallationStatus :: Downloading ,
You can’t perform that action at this time.
0 commit comments