summaryrefslogtreecommitdiff
path: root/cli/npm/resolution.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/npm/resolution.rs')
-rw-r--r--cli/npm/resolution.rs4
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(),
})
}