Fix some nightly warnings (#5093)
ONCE_INIT => Once::new Box<Error> => Box<dyn Error>
This commit is contained in:
@ -2,9 +2,9 @@
|
||||
//! `setup()` may be called multiple times.
|
||||
|
||||
use env_logger;
|
||||
use std::sync::{Once, ONCE_INIT};
|
||||
use std::sync::Once;
|
||||
|
||||
static INIT: Once = ONCE_INIT;
|
||||
static INIT: Once = Once::new();
|
||||
|
||||
/// Setup function that is only run once, even if called multiple times.
|
||||
pub fn setup() {
|
||||
|
Reference in New Issue
Block a user