Skip to content

Commit

Permalink
Fixes warnings on Rust 1.83
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon committed Dec 1, 2024
1 parent 23519ee commit e3db24e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ macro_rules! debugln {
/// for how to enable the debug writer.
pub fn debug_writer() -> Option<&'static RefCell<Box<dyn Write>>> {
// SAFETY: This is safe because the only place that write DEBUG_WRITER is our init function.
#[allow(static_mut_refs)]
unsafe { DEBUG_WRITER.as_ref() }
}

Expand Down

0 comments on commit e3db24e

Please sign in to comment.