diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-24 11:41:28 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-24 11:45:34 +0200 |
commit | f8546efe4e52bf517d54b0d5fd45fc196cb05bcd (patch) | |
tree | 69c1c75e83548598f03a5f7b12d6580c84d5a8a0 /src/storage | |
parent | fix(download): Don't fail hard, when a video file size can't be approximated (diff) | |
download | yt-f8546efe4e52bf517d54b0d5fd45fc196cb05bcd.tar.gz yt-f8546efe4e52bf517d54b0d5fd45fc196cb05bcd.zip |
fix(storage/database): Already borrow the `VideoStatus::ALL` constant
Diffstat (limited to '')
-rw-r--r-- | src/storage/video_database/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/storage/video_database/mod.rs b/src/storage/video_database/mod.rs index 2a52bb7..0251eb1 100644 --- a/src/storage/video_database/mod.rs +++ b/src/storage/video_database/mod.rs @@ -107,11 +107,13 @@ pub enum VideoStatus { } impl VideoStatus { - pub const ALL: [Self; 6] = [ + pub const ALL: &'static [Self; 6] = &[ Self::Pick, + // VideoStatus::Watch, VideoStatus::Cached, VideoStatus::Watched, + // VideoStatus::Drop, VideoStatus::Dropped, ]; |