File tree Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 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
2424jobs :
2525 code-quality :
Original file line number Diff line number Diff line change 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
2727jobs :
Original file line number Diff line number Diff line change 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
1414on :
Original file line number Diff line number Diff line change 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
2929jobs :
3030 rust :
Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ impl ManifestSplits {
205205pub 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 ) ]
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments