From 0530593c86ccf24e02f2ef0ed98fbab547fa580c Mon Sep 17 00:00:00 2001 From: Putta Khunchalee Date: Sun, 1 Dec 2024 16:00:41 +0700 Subject: [PATCH] Fixes code format --- .vscode/settings.json | 1 + src/debug.rs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 6b9ccbf..403a41e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,6 @@ { "[rust]": { + "editor.defaultFormatter": "rust-lang.rust-analyzer", "editor.formatOnSave": true }, "files.insertFinalNewline": true, diff --git a/src/debug.rs b/src/debug.rs index 1d53634..65f125d 100644 --- a/src/debug.rs +++ b/src/debug.rs @@ -30,7 +30,9 @@ macro_rules! debugln { pub fn debug_writer() -> Option<&'static RefCell>> { // 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.