@@ -352,7 +352,7 @@ mod tests {
352352 #[ test]
353353 fn merge_resource_key_value_pairs ( ) {
354354 let resource_a = Resource :: builder_empty ( )
355- . with_attributes ( vec ! [
355+ . with_attributes ( [
356356 KeyValue :: new ( "a" , "" ) ,
357357 KeyValue :: new ( "b" , "b-value" ) ,
358358 KeyValue :: new ( "d" , "d-value" ) ,
@@ -452,7 +452,7 @@ mod tests {
452452 assert_eq ! (
453453 resource,
454454 Resource :: builder_empty( )
455- . with_attributes( vec! [
455+ . with_attributes( [
456456 KeyValue :: new( "key" , "value" ) ,
457457 KeyValue :: new( "k" , "v" ) ,
458458 KeyValue :: new( "a" , "x" ) ,
@@ -519,7 +519,7 @@ mod tests {
519519 . with_detector ( Box :: new ( EnvResourceDetector :: new ( ) ) )
520520 . with_service_name ( "testing_service" )
521521 . with_attribute ( KeyValue :: new ( "test1" , "test_value" ) )
522- . with_attributes ( vec ! [
522+ . with_attributes ( [
523523 KeyValue :: new ( "test1" , "test_value1" ) ,
524524 KeyValue :: new ( "test2" , "test_value2" ) ,
525525 ] )
@@ -528,7 +528,7 @@ mod tests {
528528 assert_eq ! (
529529 resource,
530530 Resource :: builder_empty( )
531- . with_attributes( vec! [
531+ . with_attributes( [
532532 KeyValue :: new( "key" , "value" ) ,
533533 KeyValue :: new( "test1" , "test_value1" ) ,
534534 KeyValue :: new( "test2" , "test_value2" ) ,
0 commit comments