File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
aws/rust-runtime/aws-config/src/sts Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments