filter_keys takes &HashSet
This commit is contained in:
parent
56e7025288
commit
a1713ed8f9
@ -188,7 +188,7 @@ impl Prd {
|
||||
Ok(prd)
|
||||
}
|
||||
|
||||
pub fn filter_keys(&mut self, to_keep: HashSet<String>) {
|
||||
pub fn filter_keys(&mut self, to_keep: &HashSet<String>) {
|
||||
let current_keys = self.keys.clone();
|
||||
let filtered_keys: Map<String, Value> = current_keys
|
||||
.into_iter()
|
||||
|
Loading…
x
Reference in New Issue
Block a user