Skip to content

Commit 65bdeca

Browse files
authored
chore: Apply clippy autofixes (#17)
1 parent 5bfaede commit 65bdeca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/clojure.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)