From 7b2530712bfc36bb19e845e130669f4668cfbd2a Mon Sep 17 00:00:00 2001 From: Benjamin Swerdlow Date: Wed, 8 Jan 2025 22:43:33 -0800 Subject: [PATCH] ooop slight syntax sugar --- resolvers/node/resolution.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resolvers/node/resolution.rs b/resolvers/node/resolution.rs index 5b2497f659..96714d7fc7 100644 --- a/resolvers/node/resolution.rs +++ b/resolvers/node/resolution.rs @@ -207,7 +207,7 @@ impl< specifier, referrer, resolution_mode, - self.conditions_from_resolution_mode(resolution_mode), + (self.conditions_from_resolution_mode)(resolution_mode), resolution_kind, )?; @@ -349,7 +349,7 @@ impl< &package_subpath, maybe_referrer, resolution_mode, - self.conditions_from_resolution_mode(resolution_mode), + (self.conditions_from_resolution_mode)(resolution_mode), resolution_kind, )?; // TODO(bartlomieju): skipped checking errors for commonJS resolution and @@ -480,7 +480,7 @@ impl< /* sub path */ ".", maybe_referrer, resolution_mode, - self.conditions_from_resolution_mode(resolution_mode), + (self.conditions_from_resolution_mode)(resolution_mode), NodeResolutionKind::Types, ); if let Ok(resolution) = resolution_result {