diff --git a/cmd/soroban-cli/build.rs b/cmd/soroban-cli/build.rs index 82e17a1059..196e93c4af 100644 --- a/cmd/soroban-cli/build.rs +++ b/cmd/soroban-cli/build.rs @@ -118,7 +118,6 @@ mod build_helper { fn file_exists(file_path: &Path) -> bool { metadata(file_path) .as_ref() - .map(Metadata::is_file) - .unwrap_or(false) + .map_or(false, Metadata::is_file) } }