diff options
Diffstat (limited to 'crates/shirabe/src/dependency_resolver/operation/mark_alias_installed_operation.rs')
| -rw-r--r-- | crates/shirabe/src/dependency_resolver/operation/mark_alias_installed_operation.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/shirabe/src/dependency_resolver/operation/mark_alias_installed_operation.rs b/crates/shirabe/src/dependency_resolver/operation/mark_alias_installed_operation.rs index f5cb825..ab07b6a 100644 --- a/crates/shirabe/src/dependency_resolver/operation/mark_alias_installed_operation.rs +++ b/crates/shirabe/src/dependency_resolver/operation/mark_alias_installed_operation.rs @@ -44,8 +44,10 @@ impl OperationInterface for MarkAliasInstalledOperation { .get_full_pretty_version(true, crate::package::DisplayMode::SourceRefIfDev), ) } +} - fn to_string(&self) -> String { - self.show(true) +impl std::fmt::Display for MarkAliasInstalledOperation { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{}", self.show(false)) } } |
