We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 452aebf commit c33b707Copy full SHA for c33b707
examples/env_logger.rs
@@ -32,7 +32,7 @@ fn verbose() -> impl Parser<LevelFilter> {
32
.count()
33
.map(|l| {
34
use LevelFilter::*;
35
- [Off, Error, Warn, Info, Debug, Trace][l.max(5)]
+ [Off, Error, Warn, Info, Debug, Trace][l.clamp(0, 5)]
36
})
37
}
38
0 commit comments