File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -59,23 +59,6 @@ impl Binding for TraceLevel {
59
59
}
60
60
61
61
impl TraceLevel {
62
- /// Convert the [TraceLevel] to a [log::LevelFilter].
63
- ///
64
- /// [TraceLevel::Fatal] becomes [log::LevelFilter::Error] but otherwise all the conversions
65
- /// are trivial.
66
- pub const fn as_log_level_filter ( self ) -> log:: LevelFilter {
67
- use log:: LevelFilter ;
68
-
69
- match self {
70
- Self :: None => LevelFilter :: Off ,
71
- Self :: Fatal | Self :: Error => LevelFilter :: Error ,
72
- Self :: Warn => LevelFilter :: Warn ,
73
- Self :: Info => LevelFilter :: Info ,
74
- Self :: Debug => LevelFilter :: Debug ,
75
- Self :: Trace => LevelFilter :: Trace ,
76
- }
77
- }
78
-
79
62
/// Attempt to convert this [TraceLevel] to a [log::LevelFilter].
80
63
///
81
64
/// This is done trivially with two exceptions:
You can’t perform that action at this time.
0 commit comments