From a1c7e6908a26e10f6e1f23a51721664b5e2d838d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 17 May 2026 02:53:53 +0900 Subject: chore(style): cargo fmt --- crates/shirabe/src/repository/installed_repository.rs | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'crates/shirabe/src/repository/installed_repository.rs') 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(), -- cgit v1.3.1