From b8193b53f5ec1f3cdede6dd34177cf3cd89edf01 Mon Sep 17 00:00:00 2001 From: await-ovo Date: Wed, 22 Nov 2023 11:09:20 +0800 Subject: [PATCH] chore: fmt --- crates/cli/tests/install.rs | 5 +++-- crates/package-manager/src/install_without_lockfile.rs | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/cli/tests/install.rs b/crates/cli/tests/install.rs index e7bd5fa1..455c6aab 100644 --- a/crates/cli/tests/install.rs +++ b/crates/cli/tests/install.rs @@ -11,7 +11,8 @@ use pacquet_testing_utils::{ use pipe_trait::Pipe; use std::{ fs::{self, OpenOptions}, - io::Write, path::Path, + io::Write, + path::Path, }; #[test] @@ -183,7 +184,7 @@ fn should_install_circular_dependencies() { eprintln!("Executing command..."); pacquet.with_arg("install").assert().success(); - + assert!(workspace.join("./node_modules/@pnpm.e2e/circular-deps-1-of-2").exists()); assert!(workspace.join("./node_modules/.pnpm/@pnpm.e2e+circular-deps-1-of-2@1.0.2").exists()); assert!(workspace.join("./node_modules/.pnpm/@pnpm.e2e+circular-deps-2-of-2@1.0.2").exists()); diff --git a/crates/package-manager/src/install_without_lockfile.rs b/crates/package-manager/src/install_without_lockfile.rs index 728bd7ce..b92e3b72 100644 --- a/crates/package-manager/src/install_without_lockfile.rs +++ b/crates/package-manager/src/install_without_lockfile.rs @@ -1,7 +1,7 @@ use crate::InstallPackageFromRegistry; use async_recursion::async_recursion; -use futures_util::future; use dashmap::DashSet; +use futures_util::future; use node_semver::Version; use pacquet_network::ThrottledClient; use pacquet_npmrc::Npmrc; @@ -11,7 +11,7 @@ use pacquet_tarball::MemCache; use pipe_trait::Pipe; /// In-memory cache for packages that have started resolving dependencies. -/// +/// /// The contents of set is the package's virtual_store_name. /// e.g. @pnpm.e2e/dep-1@1.0.0 -> @pnpm.e2e+dep-1@1.0.0 pub type ResolvedPackages = DashSet;