Skip to content

Commit

Permalink
fix doc build
Browse files Browse the repository at this point in the history
  • Loading branch information
misson20000 committed Oct 27, 2024
1 parent 5ba9611 commit a72caf2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/view/crashreport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ impl Drop for CircumstanceGuard {
}
}

fn panic_hook(pi: &panic::PanicHookInfo, charm: sync::Arc<glib::thread_guard::ThreadGuard<rc::Rc<view::CharmApplication>>>) {
// TODO: replace this with non-deprecated PanicHookInfo once ReadTheDocs upgrades their rust toolchain and we can bump MSRV
#[allow(deprecated)]
fn panic_hook(pi: &panic::PanicInfo, charm: sync::Arc<glib::thread_guard::ThreadGuard<rc::Rc<view::CharmApplication>>>) {
if PANICKING.replace(true) {
println!("Double faulted: {}", pi);
std::process::abort();
Expand Down

0 comments on commit a72caf2

Please sign in to comment.