Skip to content

Commit 205d703

Browse files
authored
fix lint (#51)
1 parent 9ecd252 commit 205d703

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

rust/Cargo.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/sample/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ publish = { workspace = true }
1111
repository = { workspace = true }
1212
rust-version = { workspace = true }
1313
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
14+
15+
[dependencies]
16+
tracing = { workspace = true }

rust/sample/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ use std::{
1010
///
1111
/// `SampleRate` determines how often the sampled statement will occur.
1212
///
13-
/// ```ignore
14-
/// use sample::{SampleRate, Sampling};
13+
/// ```
14+
/// use sample::{sample, SampleRate, Sampling};
1515
/// use std::time::Duration;
16+
/// use tracing::info;
1617
///
1718
/// // Sampled based on frequency of events, log only every 2 logs
1819
/// sample!(SampleRate::Frequency(2), info!("Long log"));

0 commit comments

Comments
 (0)