mirror of
https://github.com/denoland/deno.git
synced 2025-02-08 07:16:56 -05:00
resolution
This commit is contained in:
parent
91fef5521e
commit
6d491b63c7
1 changed files with 3 additions and 1 deletions
|
@ -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),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue