From 039cd41edeef707b65993cdf6791d5e60f5e8f7a Mon Sep 17 00:00:00 2001 From: JRazek Date: Wed, 29 Nov 2023 19:21:21 +0100 Subject: [PATCH] fix &'static lifetime warning --- crates/llm/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/llm/src/lib.rs b/crates/llm/src/lib.rs index febe2441..c035c47d 100644 --- a/crates/llm/src/lib.rs +++ b/crates/llm/src/lib.rs @@ -114,7 +114,7 @@ macro_rules! define_models { impl ModelArchitecture { /// All available model architectures - pub const ALL: &[Self] = &[ + pub const ALL: &'static [Self] = &[ $( #[cfg(feature = $model_lowercase_str)] Self::$model_pascalcase,