We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3db24e commit 0530593Copy full SHA for 0530593
.vscode/settings.json
@@ -1,5 +1,6 @@
1
{
2
"[rust]": {
3
+ "editor.defaultFormatter": "rust-lang.rust-analyzer",
4
"editor.formatOnSave": true
5
},
6
"files.insertFinalNewline": true,
src/debug.rs
@@ -30,7 +30,9 @@ macro_rules! debugln {
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() }
+ unsafe {
34
+ DEBUG_WRITER.as_ref()
35
+ }
36
}
37
38
/// A debug writer that write the debug log to a text file.
0 commit comments