Skip to content

Commit 7903933

Browse files
clippy suggestions
1 parent 966c444 commit 7903933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handlers/http/modal/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ impl NodeMetadata {
333333
fn is_valid_metadata_file(path: &Path, node_type_str: &str) -> bool {
334334
path.file_name()
335335
.and_then(|s| s.to_str())
336-
.map_or(false, |s| s.contains(node_type_str))
336+
.is_some_and(|s| s.contains(node_type_str))
337337
}
338338

339339
/// Update metadata fields if they differ from the current configuration

0 commit comments

Comments
 (0)