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), }