mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Misc cleaning up
This commit is contained in:
parent
a19287f657
commit
a00ed8a1ca
3 changed files with 6 additions and 5 deletions
|
@ -230,9 +230,9 @@ impl ModuleId {
|
|||
#[cfg(debug_assertions)]
|
||||
pub fn name(self) -> Box<str> {
|
||||
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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue