filter_keys takes &HashSet

This commit is contained in:
NicolasCantu 2025-02-04 16:21:58 +01:00 committed by Nicolas Cantu
parent 56e7025288
commit a1713ed8f9

View File

@ -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()