@@ -355,7 +355,8 @@ mod tests {
355355 fn test_phantom_declared_recommends_machete_strip ( ) {
356356 // file-soup#50 shape: crate declared in Cargo.toml, no `use` site —
357357 // strip the manifest entry.
358- let ( cls, rationale, action) = classify ( & mock_vuln ( false , false ) , & phantom_declared_evidence ( ) ) ;
358+ let ( cls, rationale, action) =
359+ classify ( & mock_vuln ( false , false ) , & phantom_declared_evidence ( ) ) ;
359360 assert_eq ! ( cls, Classification :: Informational ) ;
360361 assert ! (
361362 action. contains( "cargo machete --fix" ) || action. contains( "Strip from Cargo.toml" ) ,
@@ -403,10 +404,8 @@ mod tests {
403404 fn test_phantom_transitive_unknown_parent_falls_back_gracefully ( ) {
404405 // Best-effort parent identification: if Cargo.lock didn't reveal one,
405406 // we still produce useful output.
406- let ( cls, rationale, action) = classify (
407- & mock_vuln ( false , false ) ,
408- & phantom_transitive_evidence ( None ) ,
409- ) ;
407+ let ( cls, rationale, action) =
408+ classify ( & mock_vuln ( false , false ) , & phantom_transitive_evidence ( None ) ) ;
410409 assert_eq ! ( cls, Classification :: Informational ) ;
411410 assert ! (
412411 action. contains( "an upstream parent dependency" ) ,
@@ -439,7 +438,8 @@ mod tests {
439438 fn test_phantom_variants_both_classify_informational ( ) {
440439 // Three-way classifier output is unchanged from #47.
441440 let ( cls_decl, _, _) = classify ( & mock_vuln ( false , false ) , & phantom_declared_evidence ( ) ) ;
442- let ( cls_trans, _, _) = classify ( & mock_vuln ( false , false ) , & phantom_transitive_evidence ( None ) ) ;
441+ let ( cls_trans, _, _) =
442+ classify ( & mock_vuln ( false , false ) , & phantom_transitive_evidence ( None ) ) ;
443443 assert_eq ! ( cls_decl, Classification :: Informational ) ;
444444 assert_eq ! ( cls_trans, Classification :: Informational ) ;
445445 }
@@ -458,7 +458,11 @@ mod tests {
458458 // a naive strip breaks the build.
459459 for name in [ "pkg-config" , "cc" , "bindgen" , "cmake" , "autocfg" , "vcpkg" ] {
460460 let ( cls, _, action) = classify ( & vuln_named ( name) , & phantom_declared_evidence ( ) ) ;
461- assert_eq ! ( cls, Classification :: Informational , "`{name}` must classify Informational" ) ;
461+ assert_eq ! (
462+ cls,
463+ Classification :: Informational ,
464+ "`{name}` must classify Informational"
465+ ) ;
462466 assert ! (
463467 action. contains( "DO NOT STRIP" ) ,
464468 "`{name}` must NOT recommend strip, got: {action}"
@@ -516,7 +520,16 @@ mod tests {
516520 #[ test]
517521 fn test_phantom_transitive_gtk_family_via_dioxus_parent ( ) {
518522 // Same family check but parent is dioxus-desktop directly.
519- for name in [ "atk" , "atk-sys" , "gdk" , "gdk-sys" , "glib" , "gtk3-macros" , "paste" , "fxhash" ] {
523+ for name in [
524+ "atk" ,
525+ "atk-sys" ,
526+ "gdk" ,
527+ "gdk-sys" ,
528+ "glib" ,
529+ "gtk3-macros" ,
530+ "paste" ,
531+ "fxhash" ,
532+ ] {
520533 let ( _, rationale, _) = classify (
521534 & vuln_named ( name) ,
522535 & phantom_transitive_evidence ( Some ( "dioxus-desktop" ) ) ,
0 commit comments