Skip to content

Commit 0f297f0

Browse files
committed
Update to Rust 1.91
1 parent b21dabf commit 0f297f0

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

.github/workflows/code-quality.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ env:
1919
RUST_BACKTRACE: short
2020
RUSTFLAGS: "-D warnings -W unreachable-pub -W bare-trait-objects"
2121
RUSTUP_MAX_RETRIES: 10
22-
RUST_CHANNEL: '1.89.0'
22+
RUST_CHANNEL: '1.91.0'
2323

2424
jobs:
2525
code-quality:

.github/workflows/dependency-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ env:
2121
CI: 1
2222
RUST_BACKTRACE: short
2323
RUSTUP_MAX_RETRIES: 10
24-
RUST_CHANNEL: '1.89.0'
24+
RUST_CHANNEL: '1.91.0'
2525
CARGO_DENY_VERSION: '0.18.4'
2626

2727
jobs:

.github/workflows/publish-rust-library.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
RUSTFLAGS: "-D warnings -W unreachable-pub -W bare-trait-objects"
99
RUSTUP_MAX_RETRIES: 10
1010
# update RUST_CHANNEL and CARGO_DENY in sync
11-
RUST_CHANNEL: '1.89.0'
11+
RUST_CHANNEL: '1.91.0'
1212
CARGO_DENY_VERSION: '0.18.4'
1313

1414
on:

.github/workflows/rust-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ env:
2424
RUST_BACKTRACE: short
2525
RUSTFLAGS: "-D warnings -W unreachable-pub -W bare-trait-objects"
2626
RUSTUP_MAX_RETRIES: 10
27-
RUST_CHANNEL: '1.89.0'
27+
RUST_CHANNEL: '1.91.0'
2828

2929
jobs:
3030
rust:

.github/workflows/windows-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
#pull-requests: read
3030
env:
3131
#CC: deny_c
32-
RUST_CHANNEL: '1.89.0'
32+
RUST_CHANNEL: '1.91.0'
3333

3434

3535
steps:

icechunk/src/format/manifest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ impl ManifestSplits {
205205
pub fn uniform_manifest_split_edges(num_chunks: u32, split_size: &u32) -> Vec<u32> {
206206
(0u32..=num_chunks)
207207
.step_by(*split_size as usize)
208-
.chain((num_chunks % split_size != 0).then_some(num_chunks))
208+
.chain((!num_chunks.is_multiple_of(*split_size)).then_some(num_chunks))
209209
.collect()
210210
}
211211
#[derive(Debug, Error)]

icechunk/src/storage/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ mod tests {
10741074
// the request sizes add up to total size
10751075
prop_assert_eq!(res.iter().map(|range| range.end - range.start).sum::<u64>(), size);
10761076

1077-
let sizes: Vec<_> = res.iter().map(|range| (range.end - range.start)).collect();
1077+
let sizes: Vec<_> = res.iter().map(|range| range.end - range.start).collect();
10781078
if sizes.len() > 1 {
10791079
// all but last request have the same size
10801080
assert_eq!(sizes.iter().rev().skip(1).unique().count(), 1);
@@ -1114,7 +1114,7 @@ mod tests {
11141114
prop_assert_eq!(res.iter().map(|range| range.end - range.start).sum::<u64>(), size);
11151115

11161116
// there are only two request sizes
1117-
let sizes: HashSet<_> = res.iter().map(|range| (range.end - range.start)).collect();
1117+
let sizes: HashSet<_> = res.iter().map(|range| range.end - range.start).collect();
11181118
prop_assert!(sizes.len() <= 2); // only last element is smaller
11191119
if sizes.len() > 1 {
11201120
// the smaller request size is one less than the big ones

0 commit comments

Comments
 (0)