From 238590aa9fdfe2aac04bb96abad2f2d2feb3101a Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Thu, 17 Nov 2022 22:59:10 -0300 Subject: chore: use Rust 1.65.0 (#16688) --- cli/npm/resolvers/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/npm/resolvers') diff --git a/cli/npm/resolvers/common.rs b/cli/npm/resolvers/common.rs index 11fa6512c..b160697d1 100644 --- a/cli/npm/resolvers/common.rs +++ b/cli/npm/resolvers/common.rs @@ -104,7 +104,7 @@ pub fn ensure_registry_read_permission( path: &Path, ) -> Result<(), AnyError> { // allow reading if it's in the node_modules - if path.starts_with(®istry_path) + if path.starts_with(registry_path) && path .components() .all(|c| !matches!(c, std::path::Component::ParentDir)) -- cgit v1.2.3