From f8546efe4e52bf517d54b0d5fd45fc196cb05bcd Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 24 Aug 2024 11:41:28 +0200 Subject: fix(storage/database): Already borrow the `VideoStatus::ALL` constant --- src/storage/video_database/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/storage') 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, ]; -- cgit 1.4.1