fix multiple calls of init

This commit is contained in:
Christof Petig 2022-01-31 21:31:08 +01:00
parent d8edd70837
commit dc92d0ab12

View File

@ -645,7 +645,8 @@ mod tests {
FmtSubscriber::builder() FmtSubscriber::builder()
.with_max_level(Level::ERROR) .with_max_level(Level::ERROR)
.with_env_filter(EnvFilter::from_default_env()) .with_env_filter(EnvFilter::from_default_env())
.init(); .try_init()
.unwrap_or_else(|_| ());
} }
#[test] #[test]