diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-20 08:33:49 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-20 08:33:57 +0900 |
| commit | f31b101ce1e921a026ba234b1f0a83b0392bc118 (patch) | |
| tree | b7ac2aa84d71ebd162cc21aeab0240e7e0544988 /crates/shirabe/src/repository/installed_repository.rs | |
| parent | 5e31fa33c3b5cf726a57a063b8e7a070869250fe (diff) | |
| download | php-shirabe-f31b101ce1e921a026ba234b1f0a83b0392bc118.tar.gz php-shirabe-f31b101ce1e921a026ba234b1f0a83b0392bc118.tar.zst php-shirabe-f31b101ce1e921a026ba234b1f0a83b0392bc118.zip | |
fix(compile): fix all remaining compile errors
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/repository/installed_repository.rs')
| -rw-r--r-- | crates/shirabe/src/repository/installed_repository.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/crates/shirabe/src/repository/installed_repository.rs b/crates/shirabe/src/repository/installed_repository.rs index 12abf1e..6091b15 100644 --- a/crates/shirabe/src/repository/installed_repository.rs +++ b/crates/shirabe/src/repository/installed_repository.rs @@ -61,8 +61,7 @@ impl InstalledRepository { Some(FindPackageConstraint::Constraint(c)) => Some(c), Some(FindPackageConstraint::String(s)) => { let version_parser = VersionParser::new(); - // TODO(phase-b): Arc<dyn ConstraintInterface + Send + Sync> -> Box<dyn ConstraintInterface> - Some(Box::new(version_parser.parse_constraints(&s).unwrap())) + Some(version_parser.parse_constraints(&s).unwrap()) } }; @@ -81,11 +80,13 @@ impl InstalledRepository { continue; } + let provides = candidate.get_provides(); + let replaces = candidate.get_replaces(); let mut provides_and_replaces: Vec<&Link> = vec![]; - for link in candidate.get_provides().values() { + for link in provides.values() { provides_and_replaces.push(link); } - for link in candidate.get_replaces().values() { + for link in replaces.values() { provides_and_replaces.push(link); } for link in provides_and_replaces { @@ -381,8 +382,9 @@ impl InstalledRepository { &mut self, repository: Box<dyn RepositoryInterface>, ) -> anyhow::Result<()> { + // TODO(phase-b): cannot Any::is::<dyn InstalledRepositoryInterface>; replace with a + // dedicated downcast/marker method on RepositoryInterface. if repository.as_any().is::<LockArrayRepository>() - || repository.as_any().is::<dyn InstalledRepositoryInterface>() || repository.as_any().is::<RootPackageRepository>() || repository.as_any().is::<PlatformRepository>() { |
