File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ jobs:
29
29
cargo clippy --target=x86_64-pc-windows-msvc --all-targets --color=always \
30
30
-- -D warnings
31
31
- run : |
32
- cargo clippy --manifest-path fuzz/Cargo.toml --color=always \
32
+ cargo clippy --manifest-path fuzz/Cargo.toml --all-targets -- color=always \
33
33
-- -D warnings
34
34
- run : |
35
- cargo clippy --manifest-path bench/Cargo.toml --color=always \
35
+ cargo clippy --manifest-path bench/Cargo.toml --all-targets -- color=always \
36
36
-- -D warnings
37
37
env:
38
38
RUSTFLAGS: "-Dwarnings"
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ fn bench_format_manual(c: &mut Criterion) {
208
208
209
209
fn bench_naivedate_add_signed ( c : & mut Criterion ) {
210
210
let date = NaiveDate :: from_ymd_opt ( 2023 , 7 , 29 ) . unwrap ( ) ;
211
- let extra = TimeDelta :: days ( 25 ) ;
211
+ let extra = TimeDelta :: try_days ( 25 ) . unwrap ( ) ;
212
212
c. bench_function ( "bench_naivedate_add_signed" , |b| {
213
213
b. iter ( || black_box ( date) . checked_add_signed ( extra) . unwrap ( ) )
214
214
} ) ;
You can’t perform that action at this time.
0 commit comments