@@ -2693,7 +2693,7 @@ mod tests {
26932693 metadata : Some ( openshell_core:: proto:: datamodel:: v1:: ObjectMeta {
26942694 id : format ! ( "provider-{name}" ) ,
26952695 name : name. to_string ( ) ,
2696- created_at_ms : 1000000 ,
2696+ created_at_ms : 1_000_000 ,
26972697 labels : HashMap :: new ( ) ,
26982698 } ) ,
26992699 r#type : provider_type. to_string ( ) ,
@@ -2705,7 +2705,7 @@ mod tests {
27052705
27062706 fn test_policy_with_rule ( rule_name : & str , host : & str ) -> ProtoSandboxPolicy {
27072707 ProtoSandboxPolicy {
2708- network_policies : [ (
2708+ network_policies : std :: iter :: once ( (
27092709 rule_name. to_string ( ) ,
27102710 NetworkPolicyRule {
27112711 name : rule_name. to_string ( ) ,
@@ -2716,8 +2716,7 @@ mod tests {
27162716 } ] ,
27172717 ..Default :: default ( )
27182718 } ,
2719- ) ]
2720- . into_iter ( )
2719+ ) )
27212720 . collect ( ) ,
27222721 ..Default :: default ( )
27232722 }
@@ -2751,11 +2750,10 @@ mod tests {
27512750 async fn enable_providers_v2 ( state : & Arc < ServerState > ) {
27522751 let global_settings = StoredSettings {
27532752 revision : 1 ,
2754- settings : [ (
2753+ settings : std :: iter :: once ( (
27552754 settings:: USE_PROVIDERS_V2_KEY . to_string ( ) ,
27562755 StoredSettingValue :: Bool ( true ) ,
2757- ) ]
2758- . into_iter ( )
2756+ ) )
27592757 . collect ( ) ,
27602758 } ;
27612759 save_global_settings ( state. store . as_ref ( ) , & global_settings)
@@ -3099,7 +3097,7 @@ mod tests {
30993097 . unwrap ( ) ;
31003098
31013099 let sandbox_policy = SandboxPolicy {
3102- network_policies : [ (
3100+ network_policies : std :: iter :: once ( (
31033101 "sandbox_only" . to_string ( ) ,
31043102 NetworkPolicyRule {
31053103 name : "sandbox_only" . to_string ( ) ,
@@ -3110,8 +3108,7 @@ mod tests {
31103108 } ] ,
31113109 ..Default :: default ( )
31123110 } ,
3113- ) ]
3114- . into_iter ( )
3111+ ) )
31153112 . collect ( ) ,
31163113 ..Default :: default ( )
31173114 } ;
@@ -3133,7 +3130,7 @@ mod tests {
31333130 state. store . put_message ( & sandbox) . await . unwrap ( ) ;
31343131
31353132 let global_policy = SandboxPolicy {
3136- network_policies : [ (
3133+ network_policies : std :: iter :: once ( (
31373134 "global_only" . to_string ( ) ,
31383135 NetworkPolicyRule {
31393136 name : "global_only" . to_string ( ) ,
@@ -3144,8 +3141,7 @@ mod tests {
31443141 } ] ,
31453142 ..Default :: default ( )
31463143 } ,
3147- ) ]
3148- . into_iter ( )
3144+ ) )
31493145 . collect ( ) ,
31503146 ..Default :: default ( )
31513147 } ;
0 commit comments