@@ -336,7 +336,13 @@ mod tests {
336336 fn deferred_plan_activates_for_narrow_filtered_projection ( ) {
337337 let projection = select ( [ "id" , "payload" ] , root ( ) ) ;
338338 let mask = vec ! [ FieldMask :: Prefix ( FieldPath :: from( Field :: Name ( "id" . into( ) ) ) ) ] ;
339- let plan = MaterializationPlan :: from_projection ( & projection, & scan_dtype ( ) , true , & mask, & BTreeSet :: new ( ) ) ;
339+ let plan = MaterializationPlan :: from_projection (
340+ & projection,
341+ & scan_dtype ( ) ,
342+ true ,
343+ & mask,
344+ & BTreeSet :: new ( ) ,
345+ ) ;
340346 let deferred = plan. deferred ( ) . expect ( "deferred plan" ) ;
341347 assert_eq ! (
342348 deferred. final_fields( ) ,
@@ -350,22 +356,40 @@ mod tests {
350356 fn deferred_plan_stays_off_for_unfiltered_projection ( ) {
351357 let projection = select ( [ "id" , "payload" ] , root ( ) ) ;
352358 let mask = vec ! [ FieldMask :: Prefix ( FieldPath :: from( Field :: Name ( "id" . into( ) ) ) ) ] ;
353- let plan = MaterializationPlan :: from_projection ( & projection, & scan_dtype ( ) , false , & mask, & BTreeSet :: new ( ) ) ;
359+ let plan = MaterializationPlan :: from_projection (
360+ & projection,
361+ & scan_dtype ( ) ,
362+ false ,
363+ & mask,
364+ & BTreeSet :: new ( ) ,
365+ ) ;
354366 assert ! ( plan. deferred( ) . is_none( ) ) ;
355367 }
356368
357369 #[ test]
358370 fn deferred_plan_stays_off_for_root_projection ( ) {
359371 let mask = vec ! [ FieldMask :: Prefix ( FieldPath :: from( Field :: Name ( "id" . into( ) ) ) ) ] ;
360- let plan = MaterializationPlan :: from_projection ( & root ( ) , & scan_dtype ( ) , true , & mask, & BTreeSet :: new ( ) ) ;
372+ let plan = MaterializationPlan :: from_projection (
373+ & root ( ) ,
374+ & scan_dtype ( ) ,
375+ true ,
376+ & mask,
377+ & BTreeSet :: new ( ) ,
378+ ) ;
361379 assert ! ( plan. deferred( ) . is_none( ) ) ;
362380 }
363381
364382 #[ test]
365383 fn deferred_plan_stays_off_for_wide_projection ( ) {
366384 let projection = select ( [ "id" , "score" , "payload" , "nested" ] , root ( ) ) ;
367385 let mask = vec ! [ FieldMask :: Prefix ( FieldPath :: from( Field :: Name ( "id" . into( ) ) ) ) ] ;
368- let plan = MaterializationPlan :: from_projection ( & projection, & scan_dtype ( ) , true , & mask, & BTreeSet :: new ( ) ) ;
386+ let plan = MaterializationPlan :: from_projection (
387+ & projection,
388+ & scan_dtype ( ) ,
389+ true ,
390+ & mask,
391+ & BTreeSet :: new ( ) ,
392+ ) ;
369393 assert ! ( plan. deferred( ) . is_none( ) ) ;
370394 }
371395
0 commit comments