Skip to content

Commit

Permalink
chore: update to Rust 1.79.0 (#4064)
Browse files Browse the repository at this point in the history
* chore: update to Rust `1.79.0`

* fix: tests
  • Loading branch information
EstebanBorai committed Jun 14, 2024
1 parent 692d7ed commit ce2bcb5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion connector/json-test-connector/src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl Stream for TestJsonSource {
}

fn size_hint(&self) -> (usize, Option<usize>) {
(std::usize::MAX, None)
(usize::MAX, None)
}
}

Expand Down
4 changes: 2 additions & 2 deletions crates/cargo-builder/src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ mod tests {
assert!(package_info
.package_path()
.ends_with("crates/cargo-builder"));
assert_eq!(package_info.target_name().unwrap(), "cargo-builder");
assert_eq!(package_info.target_name().unwrap(), "cargo_builder");
assert!(package_info
.target_bin_path()
.unwrap()
.ends_with("x86_64-unknown-linux-gnu/release-lto/cargo-builder"));
.ends_with("x86_64-unknown-linux-gnu/release-lto/cargo_builder"));
assert!(package_info
.target_wasm32_path()
.unwrap()
Expand Down
2 changes: 1 addition & 1 deletion crates/fluvio-spu/src/services/public/produce_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ async fn apply_smartmodules(
let sm_result = match process_batch(
sm_ctx.chain_mut(),
&mut batches,
std::usize::MAX,
usize::MAX,
ctx.metrics().chain_metrics(),
) {
Ok((result, sm_runtime_error)) => {
Expand Down
2 changes: 1 addition & 1 deletion crates/fluvio-storage/src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl LogIndex {

debug!(len, "memory mapped len");

if len > std::u32::MAX as u64 {
if len > u32::MAX as u64 {
return Err(IoError::new(
ErrorKind::InvalidData,
"index file should not exceed u32",
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "1.78.0"
channel = "1.79.0"

0 comments on commit ce2bcb5

Please sign in to comment.