Skip to content

Commit f166e6c

Browse files
committed
improve ergonomy with impl Into<Vec<Tag>>
1 parent 42dc27e commit f166e6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ 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(mut self, tags: Vec<Tag>) -> Self {
208-
self.tags = Some(tags);
207+
pub fn tags(mut self, tags: impl Into<Vec<Tag>>) -> Self {
208+
self.tags = Some(tags.into());
209209
self
210210
}
211211

0 commit comments

Comments
 (0)