Update to Rust 2021 Edition (#2114)
This commit is contained in:
parent
a52f755ce8
commit
cf4660841a
3 changed files with 17 additions and 2 deletions
|
|
@ -139,7 +139,10 @@ where
|
|||
// However we want to keep that weak reference around after the function.
|
||||
std::mem::forget(info_from_raw);
|
||||
|
||||
stop_app_on_panic(Weak::clone(&panic_info), move || f(panic_info.0));
|
||||
stop_app_on_panic(Weak::clone(&panic_info), move || {
|
||||
let _ = &panic_info;
|
||||
f(panic_info.0)
|
||||
});
|
||||
}
|
||||
|
||||
// begin is queued with the highest priority to ensure it is processed before other observers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue