From c839244d8d09f3036ebfee8eef7eb6b147e593ab Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 19 May 2026 00:10:22 +0900 Subject: fix(compile): fix various compile errors Co-Authored-By: Claude Sonnet 4.6 --- crates/shirabe/src/util/error_handler.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/shirabe/src/util/error_handler.rs') diff --git a/crates/shirabe/src/util/error_handler.rs b/crates/shirabe/src/util/error_handler.rs index aff263e..d531658 100644 --- a/crates/shirabe/src/util/error_handler.rs +++ b/crates/shirabe/src/util/error_handler.rs @@ -65,12 +65,12 @@ impl ErrorHandler { }); } - let io_guard = io().lock().unwrap(); + let mut io_guard = io().lock().unwrap(); if io_guard.is_some() { let has_shown = *HAS_SHOWN_DEPRECATION_NOTICE.lock().unwrap(); if has_shown > 0 && !io_guard.as_ref().unwrap().is_verbose() { if has_shown == 1 { - io_guard.as_ref().unwrap().write_error("More deprecation notices were hidden, run again with `-v` to show them."); + io_guard.as_mut().unwrap().write_error("More deprecation notices were hidden, run again with `-v` to show them."); *HAS_SHOWN_DEPRECATION_NOTICE.lock().unwrap() = 2; } return Ok(true); @@ -95,8 +95,8 @@ impl ErrorHandler { } fn output_warning(message: &str, output_even_without_io: bool) { - let io_guard = io().lock().unwrap(); - if let Some(ref io) = *io_guard { + let mut io_guard = io().lock().unwrap(); + if let Some(io) = io_guard.as_mut() { io.write_error(&format!("{}", message)); if io.is_verbose() { io.write_error("Stack trace:"); -- cgit v1.3.1