Fix some nightly warnings (#5093)

ONCE_INIT => Once::new
Box<Error> => Box<dyn Error>
This commit is contained in:
sakridge
2019-07-14 13:37:55 -07:00
committed by GitHub
parent 440d006ec1
commit 9b54528c8e
5 changed files with 13 additions and 13 deletions

View File

@ -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() {