summaryrefslogtreecommitdiff
path: root/cli/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/state.rs')
-rw-r--r--cli/state.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/state.rs b/cli/state.rs
index 24f2f5053..9a74cbfa2 100644
--- a/cli/state.rs
+++ b/cli/state.rs
@@ -90,7 +90,7 @@ impl ThreadSafeState {
argv_rest: Vec<String>,
dispatch_selector: ops::OpSelector,
) -> Self {
- let custom_root = env::var("DENO_DIR").map(|s| s.into()).ok();
+ let custom_root = env::var("DENO_DIR").map(String::into).ok();
let (worker_in_tx, worker_in_rx) = async_mpsc::channel::<Buf>(1);
let (worker_out_tx, worker_out_rx) = async_mpsc::channel::<Buf>(1);