mirror of
https://github.com/perstarkse/minne.git
synced 2026-03-20 08:34:31 +01:00
chore: clippy performance improvements
This commit is contained in:
@@ -84,7 +84,7 @@ fn add_char_into_object(
|
||||
if let ObjectStatus::KeyQuoteOpen { ref key_so_far, .. } = current_status {
|
||||
let key = key_so_far.iter().collect::<String>();
|
||||
if let Value::Object(obj) = object {
|
||||
obj.insert(key.clone(), Value::Null);
|
||||
obj.insert(key, Value::Null);
|
||||
}
|
||||
*current_status = ObjectStatus::KeyQuoteClose {
|
||||
key: key_so_far.clone(),
|
||||
|
||||
Reference in New Issue
Block a user