about summary refs log tree commit diff stats
path: root/crates
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-24 17:02:30 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-24 17:02:30 +0200
commit51bec161d856735bb24545055b9414a0fb8ef9b6 (patch)
treedf89b5860f167ac1152646e87f3f9f2c69cae9f4 /crates
parenttest(crates/yt/tests/watch/focus_switch.rs): This test simply lacks its purpose (diff)
downloadyt-51bec161d856735bb24545055b9414a0fb8ef9b6.zip
fix(crates/yt/commands/database): Correctly format the default for `--kind`
The `fmt::Debug` impl will print them capitalized, which is obviously
wrong in this context.
Diffstat (limited to 'crates')
-rw-r--r--crates/yt/src/commands/database/mod.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/yt/src/commands/database/mod.rs b/crates/yt/src/commands/database/mod.rs
index b391686..92b120f 100644
--- a/crates/yt/src/commands/database/mod.rs
+++ b/crates/yt/src/commands/database/mod.rs
@@ -23,6 +23,9 @@ pub(super) enum OperationType {
 
 impl Display for OperationType {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
-        <Self as fmt::Debug>::fmt(self, f)
+        match self {
+            OperationType::Video => f.write_str("video"),
+            OperationType::Subscription => f.write_str("subscription"),
+        }
     }
 }