From 3e015dbe0efdfb1579c789e08a13b802e0549ad5 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Thu, 12 Sep 2024 16:48:36 +0200 Subject: [PATCH] fixup --- crates/napi/src/lib.rs | 2 +- crates/napi/src/util.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/napi/src/lib.rs b/crates/napi/src/lib.rs index 4beaea1f91981c..c0bf1ffb4a8db2 100644 --- a/crates/napi/src/lib.rs +++ b/crates/napi/src/lib.rs @@ -81,7 +81,7 @@ static ALLOC: dhat::Alloc = dhat::Alloc; fn init() { set_hook(Box::new(|panic_info| { - util::log_internal_error_and_inform(format!( + util::log_internal_error_and_inform(&format!( "Panic: {}\nBacktrace: {:?}", panic_info, Backtrace::new() diff --git a/crates/napi/src/util.rs b/crates/napi/src/util.rs index c15756be872a24..dbd54cfe0df219 100644 --- a/crates/napi/src/util.rs +++ b/crates/napi/src/util.rs @@ -29,7 +29,6 @@ DEALINGS IN THE SOFTWARE. use std::{ cell::RefCell, env, - fmt::{Debug, Display}, fs::OpenOptions, io::{self, BufRead, Write}, path::PathBuf,