- Find big example
2026-06-14T14:11:15Z DEBUG pgweasel::output_results] Finished aggregating in: 475.911125ms
- Benchmark --debug option
- Isolate
samply record ./target/release/pgweasel slow top ../log_examples/pgbench_large.log&cargo run --release --features dhat-heap slow top ../log_examples/pgbench_large.log - Optimize Ty Claude
2026-06-14T14:50:42Z DEBUG pgweasel::output_results] Finished aggregating in: 261.124166ms
Outstanding cargo clippy --all-targets -- -W clippy::pedantic findings.
Check each off as it is fixed; the file is clean once all boxes are ticked.
Re-run to refresh this list:
cargo clippy --all-targets -- -W clippy::pedanticTotals: 43 warnings across 8 lints (27 in tests, 16 in src/).
All clear — cargo clippy --all-targets -- -W clippy::pedantic now reports
zero warnings.
-
src/cli.rs:7— extractederrors_command() -
src/main.rs:68— extractedhandle_errors_command() -
src/output_results/mod.rs:17— extractedcompute_ranges(),process_with_context(),process_parallel()
Use checked/try_into conversions or document why the cast is safe (then #[allow]).
-
cast_possible_truncation/cast_sign_loss—f64→usize(line 67) -
cast_precision_loss×2 —i64→f64(line 67) -
cast_precision_loss×2 —usize→f64(lines 67, 69)
Resolved by storing bucket counts as usize and computing the bar width
with integer rounding instead of floats.
-
cast_possible_truncation/cast_sign_loss—f64→u64(line 47) -
cast_possible_truncation/cast_sign_loss—f64→u64(line 48)
Resolved by using Duration::from_secs_f64 for the ns/us units, matching
the existing ms/s/min branches.
-
needless_pass_by_value—src/filters/filter_contains_ci.rs:9—new(substring: String)should take&str -
elidable_lifetime_names—src/output_results/mod.rs:279— elide'aonrecord_passes(&FilterContainer<'_>)
-
tests/grep.rs:6, 18, 30, 48 -
tests/locks.rs:6 -
tests/system.rs:7 -
tests/connections.rs:6 -
tests/help.rs:6, 18, 32, 46, 58 -
tests/slow.rs:7, 19, 31, 43 -
tests/errors.rs:9, 21, 33, 67, 86, 103, 115, 129, 154, 173, 195
-
tests/errors.rs:53— inline the variable into theformat!string