From bf237c6241f53122e37341a0dda65ef9e3b51a49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 23 Jan 2023 23:41:02 +0100 Subject: refactor: Move lockfile to a separate crate (#17503) Moves the lockfile implementation to a separate crate so other projects like Deploy can use it as well. --- cli/npm/registry.rs | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'cli/npm/registry.rs') diff --git a/cli/npm/registry.rs b/cli/npm/registry.rs index 0b35079de..97397350d 100644 --- a/cli/npm/registry.rs +++ b/cli/npm/registry.rs @@ -184,19 +184,6 @@ pub struct NpmPackageVersionDistInfo { } impl NpmPackageVersionDistInfo { - #[cfg(test)] - pub fn new( - tarball: String, - shasum: String, - integrity: Option, - ) -> Self { - Self { - tarball, - shasum, - integrity, - } - } - pub fn integrity(&self) -> Cow { self .integrity -- cgit v1.2.3