Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Sep 12, 2024
1 parent 4a96979 commit 3e015db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion crates/napi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 0 additions & 1 deletion crates/napi/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ DEALINGS IN THE SOFTWARE.
use std::{
cell::RefCell,
env,
fmt::{Debug, Display},
fs::OpenOptions,
io::{self, BufRead, Write},
path::PathBuf,
Expand Down

0 comments on commit 3e015db

Please sign in to comment.