mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-04-25 09:22:19 +00:00
Bracket notation not supported inside filter expression #38 - fix clippy error
This commit is contained in:
parent
ef52c63bc8
commit
de46a66148
@ -291,17 +291,14 @@ impl<'a> ExprTerm<'a> {
|
|||||||
} else {
|
} else {
|
||||||
let mut tmp = Vec::new();
|
let mut tmp = Vec::new();
|
||||||
for rel_value in rel {
|
for rel_value in rel {
|
||||||
match rel_value {
|
if let Value::Object(map) = rel_value {
|
||||||
Value::Object(map) => {
|
for map_value in map.values() {
|
||||||
for map_value in map.values() {
|
for result_value in &ret {
|
||||||
for result_value in &ret {
|
if map_value.eq(*result_value) {
|
||||||
if map_value.eq(*result_value) {
|
tmp.push(*rel_value);
|
||||||
tmp.push(*rel_value);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ExprTerm::Json(Some(tmp), None, ret)
|
ExprTerm::Json(Some(tmp), None, ret)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user