diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-10-28 11:52:20 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 11:52:20 +1100 |
commit | 6844caa9a552e3f8fd1f2139bdffdd090d48fe9a (patch) | |
tree | 5bed5cc8879e8169780d7c4c47ecf1cd3afd53bc /cli/module_graph2.rs | |
parent | dd01f206da0b7e1b305e70cdd3c98bf60fbefc5d (diff) |
fix(cli): restore tripleslash lib refs support (#8157)
Fixes #8147
Diffstat (limited to 'cli/module_graph2.rs')
-rw-r--r-- | cli/module_graph2.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/module_graph2.rs b/cli/module_graph2.rs index cc063c6c3..6c25ca8f2 100644 --- a/cli/module_graph2.rs +++ b/cli/module_graph2.rs @@ -747,7 +747,7 @@ impl Graph2 { debug!("graph does not need to be checked or emitted."); return Ok(( Stats(Vec::new()), - Diagnostics(Vec::new()), + Diagnostics::default(), maybe_ignored_options, )); } @@ -786,7 +786,7 @@ impl Graph2 { graph.maybe_tsbuildinfo = response.maybe_tsbuildinfo; // Only process changes to the graph if there are no diagnostics and there // were files emitted. - if response.diagnostics.0.is_empty() && !response.emitted_files.is_empty() { + if response.diagnostics.is_empty() && !response.emitted_files.is_empty() { let mut codes = HashMap::new(); let mut maps = HashMap::new(); let check_js = config.get_check_js(); @@ -1694,7 +1694,7 @@ pub mod tests { .expect("should have checked"); assert!(maybe_ignored_options.is_none()); assert_eq!(stats.0.len(), 12); - assert!(diagnostics.0.is_empty()); + assert!(diagnostics.is_empty()); let h = handler.borrow(); assert_eq!(h.cache_calls.len(), 2); assert_eq!(h.tsbuildinfo_calls.len(), 1); @@ -1717,7 +1717,7 @@ pub mod tests { .expect("should have checked"); assert!(maybe_ignored_options.is_none()); assert_eq!(stats.0.len(), 12); - assert!(diagnostics.0.is_empty()); + assert!(diagnostics.is_empty()); let h = handler.borrow(); assert_eq!(h.cache_calls.len(), 0); assert_eq!(h.tsbuildinfo_calls.len(), 1); |