summaryrefslogtreecommitdiff
path: root/cli/tools/installer.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2021-03-26 12:34:25 -0400
committerGitHub <noreply@github.com>2021-03-26 12:34:25 -0400
commitf46e39c5c5435696daab9df075482e6e5c83533b (patch)
tree7699e06977e1149b5d056739f981c0217a91ed5e /cli/tools/installer.rs
parent6c6f3e87c1a60bc96d006812a670212eeacd1257 (diff)
remove macro_use (#9884)
Diffstat (limited to 'cli/tools/installer.rs')
-rw-r--r--cli/tools/installer.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs
index a616db7ef..7547437a3 100644
--- a/cli/tools/installer.rs
+++ b/cli/tools/installer.rs
@@ -1,23 +1,24 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-
use crate::flags::Flags;
use crate::fs_util::canonicalize_path;
use deno_core::error::generic_error;
use deno_core::error::AnyError;
use deno_core::url::Url;
use log::Level;
-use regex::{Regex, RegexBuilder};
+use regex::Regex;
+use regex::RegexBuilder;
use std::env;
use std::fs;
use std::fs::File;
use std::io;
use std::io::Write;
-#[cfg(not(windows))]
-use std::os::unix::fs::PermissionsExt;
use std::path::Path;
use std::path::PathBuf;
-lazy_static! {
+#[cfg(not(windows))]
+use std::os::unix::fs::PermissionsExt;
+
+lazy_static::lazy_static! {
static ref EXEC_NAME_RE: Regex = RegexBuilder::new(
r"^[a-z][\w-]*$"
).case_insensitive(true).build().unwrap();
@@ -337,7 +338,7 @@ mod tests {
use std::sync::Mutex;
use tempfile::TempDir;
- lazy_static! {
+ lazy_static::lazy_static! {
pub static ref ENV_LOCK: Mutex<()> = Mutex::new(());
}