Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Aug 23, 2024
1 parent 315dfff commit 1fb658a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/src/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ impl Collection {
Ok(sig)
}

pub fn select_picklist(&self, pick: HashSet<(&str, &str)>) -> Self {
pub fn select_picklist(&self, pick: HashSet<(String, String)>) -> Self {
// @CTB: why do we need this clone here?
let manifest = self.manifest.clone().select_picklist(pick);
Self { manifest, storage: self.storage.clone() }
Expand Down
4 changes: 2 additions & 2 deletions src/core/src/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ impl Manifest {
self.records.len()
}

pub fn select_picklist(self, pick: HashSet<(&str, &str)>) -> Self {
pub fn select_picklist(self, pick: HashSet<(String, String)>) -> Self {
let records = self.records.iter().filter(|row| {
pick.contains(&(row.name().as_str(), row.md5().as_str()))
pick.contains(&(row.name().clone(), row.md5().clone()))
}).cloned().collect();

Self { records }
Expand Down

0 comments on commit 1fb658a

Please sign in to comment.