aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/advisory/auditor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/advisory/auditor.rs')
-rw-r--r--crates/shirabe/src/advisory/auditor.rs13
1 files changed, 2 insertions, 11 deletions
diff --git a/crates/shirabe/src/advisory/auditor.rs b/crates/shirabe/src/advisory/auditor.rs
index 258099d..2fc93f3 100644
--- a/crates/shirabe/src/advisory/auditor.rs
+++ b/crates/shirabe/src/advisory/auditor.rs
@@ -586,7 +586,7 @@ impl Auditor {
io.write_error(&sprintf(
"%s is abandoned. %s.",
&[
- PhpMixed::String(self.get_package_name_with_link_for_complete(pkg.clone())),
+ PhpMixed::String(self.get_package_name_with_link(pkg.clone().into())),
PhpMixed::String(replacement),
],
));
@@ -625,7 +625,7 @@ impl Auditor {
table.add_row(ConsoleIO::sanitize(
PhpMixed::List(vec![
Box::new(PhpMixed::String(
- self.get_package_name_with_link_for_complete(pkg.clone()),
+ self.get_package_name_with_link(pkg.clone().into()),
)),
Box::new(PhpMixed::String(replacement)),
]),
@@ -652,15 +652,6 @@ impl Auditor {
}
}
- // TODO(phase-b): merge with get_package_name_with_link once CompletePackageInterface can be
- // upcast to PackageInterface (e.g. via an as_package_interface() trait method)
- fn get_package_name_with_link_for_complete(
- &self,
- package: CompletePackageInterfaceHandle,
- ) -> String {
- self.get_package_name_with_link(package.into())
- }
-
fn get_severity(&self, advisory: &SecurityAdvisory) -> String {
if advisory.severity.is_none() {
return String::new();