Skip to content

Commit 5521816

Browse files
committed
Do not use log types in public functions.
1 parent 396c5d2 commit 5521816

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tracing.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,13 @@ impl Binding for TraceLevel {
6060

6161
impl TraceLevel {
6262
/// Attempt to convert this [TraceLevel] to a [log::LevelFilter].
63+
///
64+
/// This function is not public to avoid having a public dependency on [`log`].
6365
///
6466
/// This is done trivially with two exceptions:
6567
/// - [TraceLevel::None] goes to [None]
6668
/// - [TraceLevel::Fatal] goes to [log::Level::Error].
67-
pub const fn as_log_level(self) -> Option<log::Level> {
69+
const fn as_log_level(self) -> Option<log::Level> {
6870
use log::Level;
6971

7072
match self {

0 commit comments

Comments
 (0)