start adding review

This commit is contained in:
timeshifter
2023-01-14 19:32:03 +01:00
parent e7b80b5bff
commit 45751665b0
9 changed files with 168 additions and 1 deletions
+4
View File
@@ -68,6 +68,10 @@ pub(crate) trait Backend {
fn add_packages(&mut self, packages: HashSet<Package>);
fn show_package_info(&self, package: &Package) -> Result<()> {
todo!()
}
fn get_unmanaged_packages_sorted(&self) -> Result<Vec<Package>> {
let installed = self
.get_explicitly_installed_packages()
+4
View File
@@ -16,6 +16,10 @@ impl ToDoPerBackend {
self.0.push(item);
}
pub(crate) fn into_iter(self) -> impl Iterator<Item = (Box<dyn Backend>, Vec<Package>)> {
self.0.into_iter()
}
pub(crate) fn iter(&self) -> impl Iterator<Item = &(Box<dyn Backend>, Vec<Package>)> {
self.0.iter()
}