diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-09-26 18:16:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-26 18:16:33 +0200 |
commit | f64a44810e1fc732cd5a0aecec541c6c8a289806 (patch) | |
tree | 396a215613effcb60d19eeeec9e016aa12aff5eb /cli/global_state.rs | |
parent | 04836dc700a8e22fdb604f0640cb72be5e0194c9 (diff) |
refactor: combine MainWorker::new and MainWorker::create (#7693)
* combine MainWorker::new and MainWorker::create
* remove compiler_starts fields
* make op_state types explicit for readability
Diffstat (limited to 'cli/global_state.rs')
-rw-r--r-- | cli/global_state.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/cli/global_state.rs b/cli/global_state.rs index 590f97a76..3fe755ff1 100644 --- a/cli/global_state.rs +++ b/cli/global_state.rs @@ -24,7 +24,6 @@ use std::env; use std::fs; use std::io; use std::rc::Rc; -use std::sync::atomic::AtomicUsize; use std::sync::Arc; use std::sync::Mutex; @@ -48,7 +47,6 @@ pub struct GlobalState { pub file_fetcher: SourceFileFetcher, pub ts_compiler: TsCompiler, pub lockfile: Option<Mutex<Lockfile>>, - pub compiler_starts: AtomicUsize, pub maybe_import_map: Option<ImportMap>, pub maybe_inspector_server: Option<Arc<InspectorServer>>, } @@ -109,7 +107,6 @@ impl GlobalState { lockfile, maybe_import_map, maybe_inspector_server, - compiler_starts: AtomicUsize::new(0), }; Ok(Arc::new(global_state)) } |