We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0bb837 commit be1db16Copy full SHA for be1db16
aws/rust-runtime/aws-config/src/sts/assume_role.rs
@@ -212,7 +212,7 @@ impl AssumeRoleProviderBuilder {
212
tags.into_iter()
213
// Unwrap won't fail as both key and value are specified.
214
// Currently Tag does not have an infallible build method.
215
- .map(|(k, v)| Tag::builder().key(k).value(v).build().unwrap())
+ .map(|(k, v)| Tag::builder().key(k).value(v).build().expect("this is unreachable: both k and v are set"))
216
.collect::<Vec<_>>(),
217
);
218
self
0 commit comments