We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23519ee commit e3db24eCopy full SHA for e3db24e
src/debug.rs
@@ -29,6 +29,7 @@ macro_rules! debugln {
29
/// for how to enable the debug writer.
30
pub fn debug_writer() -> Option<&'static RefCell<Box<dyn Write>>> {
31
// SAFETY: This is safe because the only place that write DEBUG_WRITER is our init function.
32
+ #[allow(static_mut_refs)]
33
unsafe { DEBUG_WRITER.as_ref() }
34
}
35
0 commit comments