diff options
author | Bert Belder <bertbelder@gmail.com> | 2019-04-17 15:25:51 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-04-17 15:35:46 +0200 |
commit | 8477daa8b970ae8ef042a5242aee705003b63fc1 (patch) | |
tree | 61fb35d8b367749c35df82f399c176edc7773464 /cli/state.rs | |
parent | 90c2b10f47ab123f0ea7d71f3eeb3ee9172f7000 (diff) |
Fix clippy warnings
Diffstat (limited to 'cli/state.rs')
-rw-r--r-- | cli/state.rs | 2 |
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); |