Make Cargo and Clippy happy

This commit is contained in:
Clément Renault
2025-04-01 10:45:42 +02:00
parent 249da5846c
commit 4d90e3d2ec
72 changed files with 145 additions and 165 deletions

View File

@@ -271,7 +271,7 @@ fn fetch_matching_values_in_object(
}
fn starts_with(selector: &str, key: &str) -> bool {
selector.strip_prefix(key).map_or(false, |tail| {
selector.strip_prefix(key).is_some_and(|tail| {
tail.chars().next().map(|c| c == PRIMARY_KEY_SPLIT_SYMBOL).unwrap_or(true)
})
}