0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-08 07:16:56 -05:00

resolution

This commit is contained in:
Benjamin Swerdlow 2025-01-08 23:35:55 -08:00
parent 91fef5521e
commit 6d491b63c7

View file

@ -76,7 +76,9 @@ impl Debug for ConditionsFromResolutionMode {
} }
impl 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 { Self {
func: MaybeArc::new(func), func: MaybeArc::new(func),
} }