Skip to content

Commit

Permalink
Fixes code format
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon committed Dec 1, 2024
1 parent e3db24e commit 0530593
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.formatOnSave": true
},
"files.insertFinalNewline": true,
Expand Down
4 changes: 3 additions & 1 deletion src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ macro_rules! debugln {
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() }
unsafe {
DEBUG_WRITER.as_ref()
}
}

/// A debug writer that write the debug log to a text file.
Expand Down

0 comments on commit 0530593

Please sign in to comment.