@@ -155,7 +155,7 @@ impl ResourceAllocator {
155155 pools : & [ ResourcePool ] ,
156156 free : & ConciseFreeResources ,
157157 request : & ResourceRequest ,
158- running : impl Iterator < Item = & ' b Rc < Allocation > > ,
158+ running : impl Iterator < Item = & ' b Rc < Allocation > > ,
159159 static_info : & AllocatorStaticInfo ,
160160 ) -> Option < ConciseFreeResources > {
161161 let mut free = free. clone ( ) ;
@@ -217,7 +217,7 @@ impl ResourceAllocator {
217217 & coupling,
218218 & static_info. coupling_weights ,
219219 )
220- . unwrap ( ) ;
220+ . unwrap ( ) ;
221221 cost -= 0.1 ;
222222 optimal_costs. insert ( request. clone ( ) , cost) ;
223223 cost
@@ -329,7 +329,7 @@ impl ResourceAllocator {
329329 & coupling,
330330 & self . static_info . coupling_weights ,
331331 )
332- . unwrap ( ) ;
332+ . unwrap ( ) ;
333333 for ( entry, group_set) in coupling. into_iter ( ) . zip ( groups. into_iter ( ) ) {
334334 allocation. add_resource_allocation (
335335 self . pools [ entry. resource_id ] . claim_resources_with_group_mask (
@@ -393,10 +393,10 @@ impl ResourceAllocator {
393393 amount. total_fractions ( ) as f32 / size. total_fractions ( ) as f32
394394 }
395395 AllocationRequest :: ForceCompact ( amount) | AllocationRequest :: ForceTight ( amount)
396- if self . pools [ entry. resource_id ] . n_groups ( ) == 1 =>
397- {
398- amount. total_fractions ( ) as f32 / size. total_fractions ( ) as f32
399- }
396+ if self . pools [ entry. resource_id ] . n_groups ( ) == 1 =>
397+ {
398+ amount. total_fractions ( ) as f32 / size. total_fractions ( ) as f32
399+ }
400400 AllocationRequest :: ForceCompact ( amount) | AllocationRequest :: ForceTight ( amount) => {
401401 ( amount. total_fractions ( ) * 2 ) as f32 / size. total_fractions ( ) as f32
402402 }
0 commit comments