Skip to content

Commit

Permalink
core/wl_storage: remove unnecessary alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic authored and bengtlofgren committed May 11, 2023
1 parent 468b9e9 commit 9288108
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/ledger/storage/wl_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,9 @@ where
what = Next::ReturnStorage;
}
(Some((storage_key, _, _)), Some((wl_key, _))) => {
let wl_key = wl_key.to_string();
if &wl_key <= storage_key {
if wl_key <= storage_key {
what = Next::ReturnWl {
advance_storage: &wl_key == storage_key,
advance_storage: wl_key == storage_key,
};
} else {
what = Next::ReturnStorage;
Expand Down

0 comments on commit 9288108

Please sign in to comment.