1 2 3 4 5 6 7 8 9 10
// Central place to initialize logging across tests and binary. use std::sync::Once; static INIT: Once = Once::new(); pub fn setup() { INIT.call_once(|| { env_logger::init(); }); }