File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1729,8 +1729,7 @@ mod pdb_tests {
17291729 #[ test]
17301730 fn test_non_validator_multi_replica_default_pdb ( ) {
17311731 let node = node_with_replicas ( NodeType :: Horizon , 3 ) ;
1732- let pdb =
1733- build_pdb ( & node) . expect ( "PDB must be generated for multi-replica Horizon" ) ;
1732+ let pdb = build_pdb ( & node) . expect ( "PDB must be generated for multi-replica Horizon" ) ;
17341733 let spec = pdb. spec . unwrap ( ) ;
17351734 assert_eq ! ( spec. max_unavailable, Some ( IntOrString :: Int ( 1 ) ) ) ;
17361735 assert ! ( spec. min_available. is_none( ) ) ;
Original file line number Diff line number Diff line change @@ -182,13 +182,7 @@ impl DataQualityEngine {
182182 . metadata
183183 . get ( "date_partition" )
184184 . map ( |s| s. to_string ( ) )
185- . unwrap_or_else ( || {
186- r. pipeline_ts
187- . split ( 'T' )
188- . next ( )
189- . unwrap_or ( "" )
190- . to_string ( )
191- } ) ;
185+ . unwrap_or_else ( || r. pipeline_ts . split ( 'T' ) . next ( ) . unwrap_or ( "" ) . to_string ( ) ) ;
192186 let valid = date_partition. len ( ) == 10
193187 && date_partition. chars ( ) . nth ( 4 ) == Some ( '-' )
194188 && date_partition. chars ( ) . nth ( 7 ) == Some ( '-' ) ;
Original file line number Diff line number Diff line change @@ -273,9 +273,7 @@ async fn conformance_null_spec_is_denied() {
273273#[ tokio:: test]
274274async fn conformance_none_object_is_admitted_with_no_plugins ( ) {
275275 let server = new_server ( ) ;
276- let result = server
277- . validate ( make_input ( Operation :: Create , None ) )
278- . await ;
276+ let result = server. validate ( make_input ( Operation :: Create , None ) ) . await ;
279277 // With no plugins and no object the server allows through
280278 assert ! (
281279 result. allowed,
You can’t perform that action at this time.
0 commit comments