Skip to content

Commit 8f845f2

Browse files
committed
Merge branch 'main' into portable-only
2 parents 755bebd + 8fad0cb commit 8f845f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ jobs:
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
19-
os: [ubuntu-latest, macos-latest, windows-latest, macos-13]
19+
os: [ubuntu-latest, macos-latest, windows-latest, macos-15-intel]
2020
toolchain: ["1.38.0", "1.61.0", stable, beta, nightly]
2121
exclude:
2222
- os: macos-latest
2323
toolchain: "1.38.0" # macOS ARM64 is not supported by 1.38.0
24-
- os: macos-13
24+
- os: macos-15-intel
2525
toolchain: "1.38.0" # macOS is not supported by 1.38.0 (flexpect)
2626
- toolchain: "1.61.0" # only macos
2727
include:
2828
- os: macos-latest
2929
toolchain: "1.61.0"
30-
- os: macos-13
30+
- os: macos-15-intel
3131
toolchain: "1.61.0"
3232
env:
3333
RUSTFLAGS: "-D warnings"

bench/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ fn bench_late_error<M: Measurement>(c: &mut Criterion<M>, bench_fn: BenchFn) {
105105
}
106106

107107
fn scale_to_one_mib(input: &[u8]) -> Vec<u8> {
108-
input.repeat((1024 * 1024 + input.len() - 1) / input.len())
108+
input.repeat((1024_usize * 1024).div_ceil(input.len()))
109109
}
110110

111111
fn get_valid_slice_of_len_or_more(s: &[u8], len: usize) -> &[u8] {

0 commit comments

Comments
 (0)