Skip to content

Commit

Permalink
[stdout] E: Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ppenna committed Aug 11, 2024
1 parent 6716e81 commit 4d8b8fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stdout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub unsafe fn init(debugger: Box<dyn Stdout>) {
/// - It does not prevent concurrent access to the standard output device.
///
pub unsafe fn puts(s: &str) {
if let Some(debugger) = &mut STDOUT {
if let Some(debugger) = STDOUT.as_mut() {
debugger.puts(s);
} else {
dbg::puts(s);
Expand Down

0 comments on commit 4d8b8fb

Please sign in to comment.