Fix warnings on nightly (#4028)
This commit is contained in:
@ -223,7 +223,6 @@ pub fn flush() {
|
|||||||
/// Hook the panic handler to generate a data point on each panic
|
/// Hook the panic handler to generate a data point on each panic
|
||||||
pub fn set_panic_hook(program: &'static str) {
|
pub fn set_panic_hook(program: &'static str) {
|
||||||
use std::panic;
|
use std::panic;
|
||||||
use std::sync::{Once, ONCE_INIT};
|
|
||||||
static SET_HOOK: Once = ONCE_INIT;
|
static SET_HOOK: Once = ONCE_INIT;
|
||||||
SET_HOOK.call_once(|| {
|
SET_HOOK.call_once(|| {
|
||||||
let default_hook = panic::take_hook();
|
let default_hook = panic::take_hook();
|
||||||
|
Reference in New Issue
Block a user