From 6d491b63c7569b3564e77c8a6406eee409f74b36 Mon Sep 17 00:00:00 2001 From: Benjamin Swerdlow Date: Wed, 8 Jan 2025 23:35:55 -0800 Subject: [PATCH] resolution --- resolvers/node/resolution.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resolvers/node/resolution.rs b/resolvers/node/resolution.rs index 6c2107f5461ae3..cbbcde09ffe30d 100644 --- a/resolvers/node/resolution.rs +++ b/resolvers/node/resolution.rs @@ -76,7 +76,9 @@ impl Debug for ConditionsFromResolutionMode { } impl ConditionsFromResolutionMode { - pub fn new(func: impl Fn(ResolutionMode) -> &'static [&'static str]) -> Self { + pub fn new( + func: impl Fn(ResolutionMode) -> &'static [&'static str] + 'static, + ) -> Self { Self { func: MaybeArc::new(func), }