We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
log
1 parent 396c5d2 commit 5521816Copy full SHA for 5521816
src/tracing.rs
@@ -60,11 +60,13 @@ impl Binding for TraceLevel {
60
61
impl TraceLevel {
62
/// Attempt to convert this [TraceLevel] to a [log::LevelFilter].
63
+ ///
64
+ /// This function is not public to avoid having a public dependency on [`log`].
65
///
66
/// This is done trivially with two exceptions:
67
/// - [TraceLevel::None] goes to [None]
68
/// - [TraceLevel::Fatal] goes to [log::Level::Error].
- pub const fn as_log_level(self) -> Option<log::Level> {
69
+ const fn as_log_level(self) -> Option<log::Level> {
70
use log::Level;
71
72
match self {
0 commit comments