From 2117d9c1a702f735ece3dff1e33c5e4151a4b534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 23 Mar 2023 04:11:18 +0100 Subject: refactor(init): remove CURRENT_STD_URL (#18375) There's no point in having `Lazy`, since the only use case is string substitution in the "deno init" subcommand. --- cli/deno_std.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'cli/deno_std.rs') diff --git a/cli/deno_std.rs b/cli/deno_std.rs index 899c0eb0f..af77f552f 100644 --- a/cli/deno_std.rs +++ b/cli/deno_std.rs @@ -1,11 +1,5 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. -use deno_core::url::Url; -use once_cell::sync::Lazy; - // WARNING: Ensure this is the only deno_std version reference as this // is automatically updated by the version bump workflow. -static CURRENT_STD_URL_STR: &str = "https://deno.land/std@0.181.0/"; - -pub static CURRENT_STD_URL: Lazy = - Lazy::new(|| Url::parse(CURRENT_STD_URL_STR).expect("invalid std url")); +pub const CURRENT_STD_URL_STR: &str = "https://deno.land/std@0.181.0/"; -- cgit v1.2.3