aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/dependency_resolver/operation/update_operation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/dependency_resolver/operation/update_operation.rs')
-rw-r--r--crates/shirabe/src/dependency_resolver/operation/update_operation.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/crates/shirabe/src/dependency_resolver/operation/update_operation.rs b/crates/shirabe/src/dependency_resolver/operation/update_operation.rs
index 0bf3e35..76b1718 100644
--- a/crates/shirabe/src/dependency_resolver/operation/update_operation.rs
+++ b/crates/shirabe/src/dependency_resolver/operation/update_operation.rs
@@ -95,11 +95,13 @@ impl OperationInterface for UpdateOperation {
)
}
- fn to_string(&self) -> String {
- self.show(true)
- }
-
fn as_update_operation(&self) -> Option<&UpdateOperation> {
Some(self)
}
}
+
+impl std::fmt::Display for UpdateOperation {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ write!(f, "{}", self.show(false))
+ }
+}