mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-04-24 17:02:16 +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 {
|
||||
let mut tmp = Vec::new();
|
||||
for rel_value in rel {
|
||||
match rel_value {
|
||||
Value::Object(map) => {
|
||||
for map_value in map.values() {
|
||||
for result_value in &ret {
|
||||
if map_value.eq(*result_value) {
|
||||
tmp.push(*rel_value);
|
||||
}
|
||||
if let Value::Object(map) = rel_value {
|
||||
for map_value in map.values() {
|
||||
for result_value in &ret {
|
||||
if map_value.eq(*result_value) {
|
||||
tmp.push(*rel_value);
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
ExprTerm::Json(Some(tmp), None, ret)
|
||||
|
Loading…
x
Reference in New Issue
Block a user