summaryrefslogtreecommitdiff
path: root/cli/deno_std.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-23 04:11:18 +0100
committerGitHub <noreply@github.com>2023-03-23 03:11:18 +0000
commit2117d9c1a702f735ece3dff1e33c5e4151a4b534 (patch)
tree8512770444d7b850ed0d12874516d3c4ec99b46f /cli/deno_std.rs
parent64f491422bceb17a55837b0b42749803f9261d9d (diff)
refactor(init): remove CURRENT_STD_URL (#18375)
There's no point in having `Lazy<Url>`, since the only use case is string substitution in the "deno init" subcommand.
Diffstat (limited to 'cli/deno_std.rs')
-rw-r--r--cli/deno_std.rs8
1 files changed, 1 insertions, 7 deletions
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<Url> =
- 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/";