@@ -940,8 +940,8 @@ mod test {
940
940
use std:: str:: FromStr ;
941
941
942
942
use cedar_policy:: {
943
- AuthorizationError , Context , Entities , EntityId , EntityTypeName , EntityUid ,
944
- EvaluationError , PolicyId , Request , Response , PolicySet , Authorizer
943
+ AuthorizationError , Authorizer , Context , Entities , EntityId , EntityTypeName , EntityUid ,
944
+ EvaluationError , PolicyId , PolicySet , Request , Response ,
945
945
} ;
946
946
use cedar_policy_core:: ast:: { PolicyID , RestrictedExpr , Value } ;
947
947
use cedar_policy_core:: authorizer:: Decision ;
@@ -1149,7 +1149,10 @@ mod test {
1149
1149
#[ test]
1150
1150
fn build_ocsf_severity_multiple_errors ( ) {
1151
1151
assert_eq ! ( build_ocsf_severity( 1 ) , ( SeverityId :: Low , "Low" . to_string( ) ) ) ;
1152
- assert_eq ! ( build_ocsf_severity( 4 ) , ( SeverityId :: Medium , "Medium" . to_string( ) ) ) ;
1152
+ assert_eq ! (
1153
+ build_ocsf_severity( 4 ) ,
1154
+ ( SeverityId :: Medium , "Medium" . to_string( ) )
1155
+ ) ;
1153
1156
}
1154
1157
1155
1158
#[ test]
@@ -1431,14 +1434,7 @@ mod test {
1431
1434
EntityTypeName :: from_str ( "Photo" ) . unwrap ( ) ,
1432
1435
EntityId :: from_str ( "vacation.jpg" ) . unwrap ( ) ,
1433
1436
) ;
1434
- Request :: new (
1435
- principal,
1436
- action,
1437
- resource,
1438
- Context :: empty ( ) ,
1439
- None ,
1440
- )
1441
- . unwrap ( )
1437
+ Request :: new ( principal, action, resource, Context :: empty ( ) , None ) . unwrap ( )
1442
1438
}
1443
1439
1444
1440
fn create_mock_entities ( ) -> Entities {
0 commit comments