From 812dd8c13b1b66a48e8a2fec926f30b0b761c9a1 Mon Sep 17 00:00:00 2001 From: d-k-bo <47948262+d-k-bo@users.noreply.github.com> Date: Mon, 25 Mar 2024 17:18:21 +0100 Subject: [PATCH] Fix warning for lifetime in associated constant --- src/models.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models.rs b/src/models.rs index 40e2578..6cbf478 100644 --- a/src/models.rs +++ b/src/models.rs @@ -23,7 +23,7 @@ pub enum QueryField { Channel, } impl QueryField { - pub const ALL: &[QueryField] = &[ + pub const ALL: &'static [QueryField] = &[ QueryField::Topic, QueryField::Title, QueryField::Description,