Skip to content

Commit 3114597

Browse files
committed
CI: Lint benchmarks
1 parent 2d2f1a9 commit 3114597

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
cargo clippy --target=x86_64-pc-windows-msvc --all-targets --color=always \
3030
-- -D warnings
3131
- run: |
32-
cargo clippy --manifest-path fuzz/Cargo.toml --color=always \
32+
cargo clippy --manifest-path fuzz/Cargo.toml --all-targets --color=always \
3333
-- -D warnings
3434
- run: |
35-
cargo clippy --manifest-path bench/Cargo.toml --color=always \
35+
cargo clippy --manifest-path bench/Cargo.toml --all-targets --color=always \
3636
-- -D warnings
3737
env:
3838
RUSTFLAGS: "-Dwarnings"

bench/benches/chrono.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ fn bench_format_manual(c: &mut Criterion) {
208208

209209
fn bench_naivedate_add_signed(c: &mut Criterion) {
210210
let date = NaiveDate::from_ymd_opt(2023, 7, 29).unwrap();
211-
let extra = TimeDelta::days(25);
211+
let extra = TimeDelta::try_days(25).unwrap();
212212
c.bench_function("bench_naivedate_add_signed", |b| {
213213
b.iter(|| black_box(date).checked_add_signed(extra).unwrap())
214214
});

0 commit comments

Comments
 (0)