diff options
Diffstat (limited to 'crates/shirabe/src/repository/installed_repository.rs')
| -rw-r--r-- | crates/shirabe/src/repository/installed_repository.rs | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/crates/shirabe/src/repository/installed_repository.rs b/crates/shirabe/src/repository/installed_repository.rs index f3b53ae..bb56c94 100644 --- a/crates/shirabe/src/repository/installed_repository.rs +++ b/crates/shirabe/src/repository/installed_repository.rs @@ -223,11 +223,7 @@ impl InstalledRepository { for pkg in self.find_packages(link.get_target().to_string(), None) { let version = Constraint::new("=", pkg.get_version()); if link.get_constraint().matches(&version) == invert { - results.push(DependentsEntry( - package.clone_box(), - link.clone(), - None, - )); + results.push(DependentsEntry(package.clone_box(), link.clone(), None)); } } } @@ -238,11 +234,7 @@ impl InstalledRepository { for pkg in self.find_packages(link.get_target().to_string(), None) { let version = Constraint::new("=", pkg.get_version()); if link.get_constraint().matches(&version) == invert { - results.push(DependentsEntry( - package.clone_box(), - link.clone(), - None, - )); + results.push(DependentsEntry(package.clone_box(), link.clone(), None)); } } } @@ -327,9 +319,7 @@ impl InstalledRepository { } for root_req in root_reqs.values() { if pkg.get_names().contains(&root_req.get_target().to_string()) - && !root_req - .get_constraint() - .matches(link.get_constraint()) + && !root_req.get_constraint().matches(link.get_constraint()) { results.push(DependentsEntry( package.clone_box(), |
