Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: lockfiles #3231

Merged
merged 14 commits into from
Nov 3, 2019
Prev Previous commit
Next Next commit
clippy
  • Loading branch information
ry committed Oct 29, 2019
commit 0f3bf43f4e659cc36d4452aa3ba96988351c3ffb
6 changes: 2 additions & 4 deletions cli/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,10 @@ impl ThreadSafeState {

let modules = Arc::new(Mutex::new(deno::Modules::new()));

let lock_write = Lockfile::from_flag(&flags.lock_write)
.map(|lockfile| Mutex::new(lockfile));
let lock_write = Lockfile::from_flag(&flags.lock_write).map(Mutex::new);

// Note: reads lazily from disk on first call to lock_check.check()
let lock_check = Lockfile::from_flag(&flags.lock_check)
.map(|lockfile| Mutex::new(lockfile));
let lock_check = Lockfile::from_flag(&flags.lock_check).map(Mutex::new);

let state = State {
main_module,
Expand Down