Skip to content

Commit

Permalink
fix osx build, clippy dings
Browse files Browse the repository at this point in the history
Signed-off-by: Brian L. Troutwine <[email protected]>
  • Loading branch information
blt committed Jul 16, 2024
1 parent e793161 commit 1969515
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

4 changes: 2 additions & 2 deletions lading/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lading"
version = "0.22.0-rc1"
version = "0.22.0-rc2"
authors = [
"Brian L. Troutwine <[email protected]>",
"George Hahn <[email protected]>",
Expand Down Expand Up @@ -52,12 +52,12 @@ tracing = { workspace = true }
tracing-subscriber = { version = "0.3", features = ["std", "env-filter"] }
uuid = { workspace = true }
zstd = "0.13.1"
perf-event2 = "0.7.4"

[target.'cfg(target_os = "linux")'.dependencies]
cgroups-rs = "0.3"
procfs = { version = "0.15", default-features = false, features = [] }
async-pidfd = "0.1"
perf-event2 = "0.7.4"

[dev-dependencies]
proptest = "1.4"
Expand Down
2 changes: 1 addition & 1 deletion lading/src/observer/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl Gauge {
}
}

/// Attempts to initialize perf_event counters.
/// Attempts to initialize `perf_event` counters.
/// If either fail, then (None, None) is returned and errors are logged.
fn init_perf_counters(parent_pid: i32) -> (Option<Counter>, Option<Counter>) {
let mut cycles = match Builder::new(Hardware::CPU_CYCLES)
Expand Down

0 comments on commit 1969515

Please sign in to comment.