Skip to content

Commit 2887498

Browse files
client: Avoid string re-allocation 2
1 parent 0a8b314 commit 2887498

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/src/file/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl Item {
8080
Self::Unlocked(unlocked) => {
8181
let item_attrs = unlocked.attributes();
8282
attributes.as_attributes().iter().all(|(k, value)| {
83-
item_attrs.get(&k.to_string()).map(|v| v.as_ref()) == Some(value)
83+
item_attrs.get(*k).map(|v| v.as_ref()) == Some(value)
8484
})
8585
}
8686
Self::Locked(locked) => {

0 commit comments

Comments
 (0)