Skip to content

Commit 0530593

Browse files
committed
Fixes code format
1 parent e3db24e commit 0530593

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.vscode/settings.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"[rust]": {
3+
"editor.defaultFormatter": "rust-lang.rust-analyzer",
34
"editor.formatOnSave": true
45
},
56
"files.insertFinalNewline": true,

src/debug.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ macro_rules! debugln {
3030
pub fn debug_writer() -> Option<&'static RefCell<Box<dyn Write>>> {
3131
// SAFETY: This is safe because the only place that write DEBUG_WRITER is our init function.
3232
#[allow(static_mut_refs)]
33-
unsafe { DEBUG_WRITER.as_ref() }
33+
unsafe {
34+
DEBUG_WRITER.as_ref()
35+
}
3436
}
3537

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

0 commit comments

Comments
 (0)