mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
writeln->println, ignore clippy
This commit is contained in:
parent
7c93d237ce
commit
46bdd4072a
1 changed files with 2 additions and 1 deletions
|
@ -163,6 +163,7 @@ impl Symbol {
|
|||
/// `Foo.bar`
|
||||
impl fmt::Debug for Symbol {
|
||||
#[cfg(debug_assertions)]
|
||||
#[allow(clippy::print_in_format_impl)]
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
if PRETTY_PRINT_DEBUG_SYMBOLS {
|
||||
let module_id = self.module_id();
|
||||
|
@ -181,7 +182,7 @@ impl fmt::Debug for Symbol {
|
|||
// might be used in a panic error message, and if we panick
|
||||
// while we're already panicking it'll kill the process
|
||||
// without printing any of the errors!
|
||||
writeln!(f, "DEBUG INFO: Failed to acquire lock for Debug reading from DEBUG_IDENT_IDS_BY_MODULE_ID, presumably because a thread panicked: {:?}", err)?;
|
||||
eprintln!("DEBUG INFO: Failed to acquire lock for Debug reading from DEBUG_IDENT_IDS_BY_MODULE_ID, presumably because a thread panicked: {:?}", err);
|
||||
|
||||
fallback_debug_fmt(*self, f)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue