aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/repository/installed_repository.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-17 02:53:53 +0900
committernsfisis <nsfisis@gmail.com>2026-05-17 02:53:53 +0900
commita1c7e6908a26e10f6e1f23a51721664b5e2d838d (patch)
treec575c76f1b43359ed74913da4c6a2636643f1ba0 /crates/shirabe/src/repository/installed_repository.rs
parent7f606f36fef0c0467c3c0db3d0da33af486dae8a (diff)
downloadphp-shirabe-a1c7e6908a26e10f6e1f23a51721664b5e2d838d.tar.gz
php-shirabe-a1c7e6908a26e10f6e1f23a51721664b5e2d838d.tar.zst
php-shirabe-a1c7e6908a26e10f6e1f23a51721664b5e2d838d.zip
chore(style): cargo fmt
Diffstat (limited to 'crates/shirabe/src/repository/installed_repository.rs')
-rw-r--r--crates/shirabe/src/repository/installed_repository.rs16
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(),