diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-07-24 17:02:30 +0200 | 
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-07-24 17:02:30 +0200 | 
| commit | 51bec161d856735bb24545055b9414a0fb8ef9b6 (patch) | |
| tree | df89b5860f167ac1152646e87f3f9f2c69cae9f4 | |
| parent | test(crates/yt/tests/watch/focus_switch.rs): This test simply lacks its purpose (diff) | |
| download | yt-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.
| -rw-r--r-- | crates/yt/src/commands/database/mod.rs | 5 | 
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"), + } } }  | 
