@@ -305,7 +305,12 @@ fn activate_deps_loop(
305305 // It's our job here to backtrack, if possible, and find a
306306 // different candidate to activate. If we can't find any
307307 // candidates whatsoever then it's time to bail entirely.
308- trace ! ( "{}[{}]>{} -- no candidates" , parent. name( ) , cur, dep. package_name( ) ) ;
308+ trace ! (
309+ "{}[{}]>{} -- no candidates" ,
310+ parent. name( ) ,
311+ cur,
312+ dep. package_name( )
313+ ) ;
309314
310315 // Use our list of `conflicting_activations` to add to our
311316 // global list of past conflicting activations, effectively
@@ -325,7 +330,12 @@ fn activate_deps_loop(
325330 past_conflicting_activations. insert ( & dep, & conflicting_activations) ;
326331 }
327332
328- match find_candidate ( & mut backtrack_stack, & parent, backtracked, & conflicting_activations) {
333+ match find_candidate (
334+ & mut backtrack_stack,
335+ & parent,
336+ backtracked,
337+ & conflicting_activations,
338+ ) {
329339 Some ( ( candidate, has_another, frame) ) => {
330340 // Reset all of our local variables used with the
331341 // contents of `frame` to complete our backtrack.
@@ -432,8 +442,7 @@ fn activate_deps_loop(
432442 . clone ( )
433443 . filter_map ( |( _, ( ref new_dep, _, _) ) | {
434444 past_conflicting_activations. conflicting ( & cx, new_dep)
435- } )
436- . next ( )
445+ } ) . next ( )
437446 {
438447 // If one of our deps is known unresolvable
439448 // then we will not succeed.
@@ -467,18 +476,14 @@ fn activate_deps_loop(
467476 . iter ( )
468477 . flat_map ( |other| other. flatten ( ) )
469478 // for deps related to us
470- . filter ( |& ( _, ref other_dep) |
471- known_related_bad_deps. contains ( other_dep) )
472- . filter_map ( |( other_parent, other_dep) | {
479+ . filter ( |& ( _, ref other_dep) | {
480+ known_related_bad_deps. contains ( other_dep)
481+ } ) . filter_map ( |( other_parent, other_dep) | {
473482 past_conflicting_activations
474- . find_conflicting (
475- & cx,
476- & other_dep,
477- |con| con. contains_key ( & pid)
478- )
479- . map ( |con| ( other_parent, con) )
480- } )
481- . next ( )
483+ . find_conflicting ( & cx, & other_dep, |con| {
484+ con. contains_key ( & pid)
485+ } ) . map ( |con| ( other_parent, con) )
486+ } ) . next ( )
482487 {
483488 let rel = conflict. get ( & pid) . unwrap ( ) . clone ( ) ;
484489
@@ -837,7 +842,13 @@ fn find_candidate(
837842 . context_backup
838843 . is_conflicting ( Some ( parent. package_id ( ) ) , conflicting_activations)
839844 {
840- trace ! ( "{} = \" {}\" skip as not solving {}: {:?}" , frame. dep. package_name( ) , frame. dep. version_req( ) , parent. package_id( ) , conflicting_activations) ;
845+ trace ! (
846+ "{} = \" {}\" skip as not solving {}: {:?}" ,
847+ frame. dep. package_name( ) ,
848+ frame. dep. version_req( ) ,
849+ parent. package_id( ) ,
850+ conflicting_activations
851+ ) ;
841852 continue ;
842853 }
843854 }
0 commit comments