fix: clippy lints

This commit is contained in:
Amaan Qureshi 2024-11-16 03:20:59 -05:00
parent 78e5144f3f
commit 274e60a523
No known key found for this signature in database
GPG key ID: E67890ADC4227273
10 changed files with 17 additions and 22 deletions

View file

@ -65,10 +65,7 @@ fn web_playground_files_present() -> bool {
fn read_git_sha() -> Option<String> {
let crate_path = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());
if !crate_path
.parent()
.map_or(false, |p| p.join(".git").exists())
{
if !crate_path.parent().is_some_and(|p| p.join(".git").exists()) {
return None;
}