Skip to content

Commit 396c5d2

Browse files
committed
Remove function converting TraceLevel to LogLevelFilter.
1 parent 9e7bae0 commit 396c5d2

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/tracing.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,6 @@ impl Binding for TraceLevel {
5959
}
6060

6161
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-
7962
/// Attempt to convert this [TraceLevel] to a [log::LevelFilter].
8063
///
8164
/// This is done trivially with two exceptions:

0 commit comments

Comments
 (0)