Skip to content

Commit be8ca30

Browse files
committed
fix: build issues
1 parent 88b7a88 commit be8ca30

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl InfracostExtension {
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
}
@@ -58,7 +58,7 @@ impl InfracostExtension {
5858
let version_dir = format!("infracost-ls-{version}");
5959
let binary_path = format!("{version_dir}/infracost-ls");
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,

0 commit comments

Comments
 (0)