fix(apb): don't iter vec needlessly
This commit is contained in:
parent
ba07b2cb9d
commit
deb5fe5744
1 changed files with 2 additions and 2 deletions
|
@ -321,9 +321,9 @@ pub fn set_maybe_node(obj: &mut serde_json::Value, key: &str, node: crate::Node<
|
||||||
obj, key, Some(serde_json::Value::String(l.href().to_string())),
|
obj, key, Some(serde_json::Value::String(l.href().to_string())),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
crate::Node::Array(_) => {
|
crate::Node::Array(arr) => {
|
||||||
set_maybe_value(
|
set_maybe_value(
|
||||||
obj, key, Some(serde_json::Value::Array(node.into_iter().collect())),
|
obj, key, Some(serde_json::Value::Array(arr.into())),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
crate::Node::Empty => {
|
crate::Node::Empty => {
|
||||||
|
|
Loading…
Reference in a new issue