Skip to content

Commit

Permalink
Replace deprecated PanicInfo type alias
Browse files Browse the repository at this point in the history
Signed-off-by: Vlad Volodkin <vlaad@amazon.com>
  • Loading branch information
Vlad Volodkin committed Oct 17, 2024
1 parent 7d43629 commit bbaead2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mountpoint-s3/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::backtrace::Backtrace;
use std::fs::{DirBuilder, OpenOptions};
use std::os::unix::fs::DirBuilderExt;
use std::os::unix::prelude::OpenOptionsExt;
use std::panic::{self, PanicInfo};
use std::panic::{self, PanicHookInfo};
use std::path::{Path, PathBuf};
use std::thread;

Expand Down Expand Up @@ -70,7 +70,7 @@ pub fn prepare_log_file_name(log_directory: &Path) -> PathBuf {
log_directory.join(file_name)
}

fn tracing_panic_hook(panic_info: &PanicInfo) {
fn tracing_panic_hook(panic_info: &PanicHookInfo) {
let location = panic_info
.location()
.map(|l| format!("{}", l))
Expand Down

0 comments on commit bbaead2

Please sign in to comment.