diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-04-17 15:36:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-17 15:36:23 -0400 |
commit | d2d62b6312f9c09f91e26acd0b4d88b3ddcf94cf (patch) | |
tree | f2f5f0eb14e76e38876b3c219c859405fa664aef /cli/npm/resolution.rs | |
parent | 559a61b879366c01fbbc078c03743cd836189ae7 (diff) |
refactor(npm): add CliNodeResolver (#18742)
Diffstat (limited to 'cli/npm/resolution.rs')
-rw-r--r-- | cli/npm/resolution.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/npm/resolution.rs b/cli/npm/resolution.rs index 375191b2d..26fc356ff 100644 --- a/cli/npm/resolution.rs +++ b/cli/npm/resolution.rs @@ -156,12 +156,12 @@ impl NpmResolution { pub fn pkg_req_ref_to_nv_ref( &self, - req_ref: NpmPackageReqReference, + req_ref: &NpmPackageReqReference, ) -> Result<NpmPackageNvReference, PackageReqNotFoundError> { let node_id = self.resolve_pkg_id_from_pkg_req(&req_ref.req)?; Ok(NpmPackageNvReference { nv: node_id.nv, - sub_path: req_ref.sub_path, + sub_path: req_ref.sub_path.clone(), }) } |