Clippy fixes

This commit is contained in:
mdecimus
2025-08-18 11:44:58 +01:00
parent d6531be012
commit e10aa551eb
102 changed files with 1336 additions and 1411 deletions

View File

@@ -71,10 +71,10 @@ impl JsonQueryable for serde_json::Value {
) {
match pointer.next() {
Some(JsonPointerItem::String(n)) => {
if let serde_json::Value::Object(map) = self {
if let Some(v) = map.get(n) {
v.eval_pointer(pointer, results);
}
if let serde_json::Value::Object(map) = self
&& let Some(v) = map.get(n)
{
v.eval_pointer(pointer, results);
}
}
Some(JsonPointerItem::Number(n)) => match self {