From a00ed8a1ca37c7a82e6932ab8f7fea550afdba13 Mon Sep 17 00:00:00 2001 From: Chad Stearns Date: Sun, 29 Mar 2020 14:27:21 -0400 Subject: [PATCH] Misc cleaning up --- compiler/module/src/symbol.rs | 6 +++--- compiler/reporting/src/report.rs | 1 + compiler/reporting/tests/test_reporting.rs | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/compiler/module/src/symbol.rs b/compiler/module/src/symbol.rs index 1c31a81b4f..728d2f52f7 100644 --- a/compiler/module/src/symbol.rs +++ b/compiler/module/src/symbol.rs @@ -230,9 +230,9 @@ impl ModuleId { #[cfg(debug_assertions)] pub fn name(self) -> Box { let names = - DEBUG_MODULE_ID_NAMES - .lock() - .expect("Failed to acquire lock for Debug reading from DEBUG_MODULE_ID_NAMES, presumably because a thread panicked."); + DEBUG_MODULE_ID_NAMES + .lock() + .expect("Failed to acquire lock for Debug reading from DEBUG_MODULE_ID_NAMES, presumably because a thread panicked."); match names.get(&self.0) { Some(str_ref) => str_ref.clone(), diff --git a/compiler/reporting/src/report.rs b/compiler/reporting/src/report.rs index 28f39ea528..91f070d9f0 100644 --- a/compiler/reporting/src/report.rs +++ b/compiler/reporting/src/report.rs @@ -122,6 +122,7 @@ pub enum ReportText { /// The documentation for this symbol. Docs(Symbol), + /// Many ReportText that should be concatenated together. Batch(Vec), } diff --git a/compiler/reporting/tests/test_reporting.rs b/compiler/reporting/tests/test_reporting.rs index 7e9d553eec..85abffcf88 100644 --- a/compiler/reporting/tests/test_reporting.rs +++ b/compiler/reporting/tests/test_reporting.rs @@ -417,7 +417,7 @@ mod test_report { isDisabled = \user -> user.isAdmin theAdmin - |> isDabled + |> isDisabled "# ), to_simple_report(Region(roc_region::all::Region { @@ -431,7 +431,7 @@ mod test_report { 1 isDisabled = \user -> user.isAdmin 2 3 theAdmin - 4 |> isDabled"# + 4 |> isDisabled"# ), ); }