diff options
author | Andy Hayden <andyhayden1@gmail.com> | 2018-11-30 00:30:49 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-11-30 00:30:49 -0800 |
commit | aab02805dd00a2dd661f141333d7ec6f347b204d (patch) | |
tree | 9866ff1ed876182425cd34cced57bc936c297b8b /src/isolate.rs | |
parent | 17994d45423fd5f10e1df347aa8e6962fd1e5bc2 (diff) |
clippy fixes (#1250)
Diffstat (limited to 'src/isolate.rs')
-rw-r--r-- | src/isolate.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/isolate.rs b/src/isolate.rs index 6e53e4461..6e4c421c7 100644 --- a/src/isolate.rs +++ b/src/isolate.rs @@ -68,7 +68,7 @@ pub struct IsolateState { impl IsolateState { pub fn new(flags: flags::DenoFlags, argv_rest: Vec<String>) -> Self { let custom_root = env::var("DENO_DIR").map(|s| s.into()).ok(); - IsolateState { + Self { dir: deno_dir::DenoDir::new(flags.reload, custom_root).unwrap(), argv: argv_rest, permissions: DenoPermissions::new(&flags), @@ -152,7 +152,7 @@ impl Isolate { tx, ntasks: 0, timeout_due: None, - state: state, + state, } } |