Skip to content

Commit 61b52da

Browse files
committed
Run cargo fmt on assume_role.rs
1 parent bf0d9cf commit 61b52da

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,15 +204,22 @@ impl AssumeRoleProviderBuilder {
204204
///
205205
/// A list of session tags that you want to pass. Each session tag consists of a key name and an associated value.
206206
/// For more information, see `[Tag]`.
207-
pub fn tags<K, V>(mut self, tags: impl IntoIterator<Item = (K, V)>) -> Self
207+
pub fn tags<K, V>(mut self, tags: impl IntoIterator<Item = (K, V)>) -> Self
208208
where
209209
K: Into<String>,
210-
V: Into<String>{
210+
V: Into<String>,
211+
{
211212
self.tags = Some(
212213
tags.into_iter()
213214
// Unwrap won't fail as both key and value are specified.
214215
// Currently Tag does not have an infallible build method.
215-
.map(|(k, v)| Tag::builder().key(k).value(v).build().expect("this is unreachable: both k and v are set"))
216+
.map(|(k, v)| {
217+
Tag::builder()
218+
.key(k)
219+
.value(v)
220+
.build()
221+
.expect("this is unreachable: both k and v are set")
222+
})
216223
.collect::<Vec<_>>(),
217224
);
218225
self

0 commit comments

Comments
 (0)