Skip to content

Commit e009b8e

Browse files
authored
Rust: bump msrv to 1.76.0 (#6494)
1 parent c5be860 commit e009b8e

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

.github/workflows/rust.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- uses: dtolnay/rust-toolchain@stable
2727
if: steps.changed-files.outputs.any_changed == 'true'
2828
with:
29-
toolchain: "1.75.0"
29+
toolchain: "1.76.0"
3030
components: clippy, rustfmt
3131
- name: Set Environment
3232
if: steps.changed-files.outputs.any_changed == 'true'

rustv1/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:1
2-
ARG MSRV=1.75.0
2+
ARG MSRV=1.76.0
33
FROM rust:$MSRV
44

55
# Update image

rustv1/cross_service/photo_asset_management/src/uploader.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl<'a> ZipUpload<'a> {
7777
let key = self.key;
7878

7979
let body = ByteStream::read_from()
80-
.file(zip.try_into()?)
80+
.file(zip.into())
8181
.buffer_size(4096 * 16)
8282
.build()
8383
.await?;

rustv1/cross_service/rest_ses/src/work_item/repository.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub async fn retrieve(id: String, client: &RdsClient) -> Result<WorkItem, WorkIt
8282
}
8383

8484
// Last chance for something to go wrong!
85-
let item = match items.get(0) {
85+
let item = match items.first() {
8686
Some(item) => Ok(item),
8787
None => Err(WorkItemError::Other(
8888
"Somehow len() == 1 but get(0) is None".to_string(),
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# This should be kept in sync with https://github.com/awslabs/aws-sdk-rust#supported-rust-versions-msrv
22
[toolchain]
3-
channel = "1.75.0"
3+
channel = "1.76.0"

rustv1/examples/glue/src/run.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl GlueScenario {
4444
.arguments(
4545
"--input_table",
4646
self.tables
47-
.get(0)
47+
.first()
4848
.ok_or_else(|| GlueMvpError::Unknown("Missing crawler table".into()))?
4949
.name(),
5050
)

rustv1/examples/rust-toolchain.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# This should be kept in sync with https://github.com/awslabs/aws-sdk-rust#supported-rust-versions-msrv
22
[toolchain]
3-
channel = "1.75.0"
3+
channel = "1.76.0"

0 commit comments

Comments
 (0)