mirror of
https://git.proxmox.com/git/rustc
synced 2025-10-25 22:42:38 +00:00
11 lines
263 B
Rust
11 lines
263 B
Rust
#![cfg(feature = "fmt")]
|
|
use tracing_subscriber::filter::LevelFilter;
|
|
|
|
#[test]
|
|
fn fmt_sets_max_level_hint() {
|
|
tracing_subscriber::fmt()
|
|
.with_max_level(LevelFilter::DEBUG)
|
|
.init();
|
|
assert_eq!(LevelFilter::current(), LevelFilter::DEBUG);
|
|
}
|