mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-07-31 23:32:02 +00:00
move static function to outside of a struct
This commit is contained in:
@@ -107,7 +107,7 @@ fn selector_select_to() {
|
||||
fn _remove_name(v: Value) -> Option<Value> {
|
||||
let r = match v {
|
||||
Value::Array(mut vec) => {
|
||||
for mut v in &mut vec {
|
||||
for v in &mut vec {
|
||||
v.as_object_mut().unwrap().remove("name");
|
||||
}
|
||||
Value::Array(vec)
|
||||
|
Reference in New Issue
Block a user