Skip to content

Commit be1db16

Browse files
c-thielrcoh
andauthored
Update aws/rust-runtime/aws-config/src/sts/assume_role.rs
Co-authored-by: Russell Cohen <[email protected]>
1 parent f0bb837 commit be1db16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws/rust-runtime/aws-config/src/sts/assume_role.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl AssumeRoleProviderBuilder {
212212
tags.into_iter()
213213
// Unwrap won't fail as both key and value are specified.
214214
// Currently Tag does not have an infallible build method.
215-
.map(|(k, v)| Tag::builder().key(k).value(v).build().unwrap())
215+
.map(|(k, v)| Tag::builder().key(k).value(v).build().expect("this is unreachable: both k and v are set"))
216216
.collect::<Vec<_>>(),
217217
);
218218
self

0 commit comments

Comments
 (0)