Skip to content

Commit

Permalink
fix lint (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtso authored Sep 19, 2024
1 parent 9ecd252 commit 205d703
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions rust/sample/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ publish = { workspace = true }
repository = { workspace = true }
rust-version = { workspace = true }
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
tracing = { workspace = true }
5 changes: 3 additions & 2 deletions rust/sample/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ use std::{
///
/// `SampleRate` determines how often the sampled statement will occur.
///
/// ```ignore
/// use sample::{SampleRate, Sampling};
/// ```
/// use sample::{sample, SampleRate, Sampling};
/// use std::time::Duration;
/// use tracing::info;
///
/// // Sampled based on frequency of events, log only every 2 logs
/// sample!(SampleRate::Frequency(2), info!("Long log"));
Expand Down

0 comments on commit 205d703

Please sign in to comment.