Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzeng0 committed Jul 27, 2024
1 parent 4989e7b commit 1894855
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/log/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl Log for Logger {
}

#[track_caller]
fn panic_hook(info: &PanicHookInfo<'_>) {
fn panic_hook(info: &PanicInfo<'_>) {
let msg = match info.payload().downcast_ref::<&'static str>() {
Some(s) => *s,
None => match info.payload().downcast_ref::<String>() {
Expand Down
2 changes: 1 addition & 1 deletion src/log/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::backtrace::{Backtrace, BacktraceStatus};
use std::fmt::Arguments;
use std::io::{stderr, BufWriter, Result, Stderr, Write};
use std::panic::{set_hook, Location, PanicHookInfo};
use std::panic::{set_hook, Location, PanicInfo};

pub use log::{max_level as get_max_level, set_max_level, Level, LevelFilter};

Expand Down

0 comments on commit 1894855

Please sign in to comment.