Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Satisfy borrowck
Browse files Browse the repository at this point in the history
  • Loading branch information
hirschenberger committed Sep 9, 2021
1 parent f3e3ce3 commit d618704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/rpc/src/state/state_light.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ where
.map(|data| {
data.iter()
.filter_map(|(k, d)| {
keys.contains(k).then(|| d.map(|v| StorageData(v.to_vec())))
keys.contains(k).then(|| d.as_ref().map(|v| StorageData(v.to_vec())))
})
.collect::<Vec<_>>()
})
Expand Down

0 comments on commit d618704

Please sign in to comment.