@@ -1480,9 +1480,10 @@ impl Reaper {
14801480#[ cfg( test) ]
14811481mod test {
14821482 use crate :: {
1483- DEFAULT_RIB_PRIORITY_STATIC , StaticRouteKey , db:: Db , test:: TestDb ,
1484- types:: PrefixDbKey , types :: test_helpers:: path_vecs_equal,
1483+ StaticRouteKey , db:: Db , test:: TestDb , types :: PrefixDbKey ,
1484+ types:: test_helpers:: path_vecs_equal,
14851485 } ;
1486+ use mg_api_types:: rdb:: DEFAULT_RIB_PRIORITY_STATIC ;
14861487 use mg_api_types:: rdb:: path:: Path ;
14871488 use mg_api_types:: rdb:: prefix:: { Prefix , Prefix4 , Prefix6 } ;
14881489 use mg_api_types:: rdb:: rib:: AddressFamily ;
@@ -1521,12 +1522,13 @@ mod test {
15211522 #[ test]
15221523 fn test_rib ( ) {
15231524 use crate :: StaticRouteKey ;
1524- use crate :: {
1525- DEFAULT_RIB_PRIORITY_BGP , DEFAULT_RIB_PRIORITY_STATIC , db:: Db ,
1526- } ;
1525+ use crate :: db:: Db ;
15271526 use mg_api_types:: bgp:: peer:: PeerId ;
15281527 use mg_api_types:: rdb:: path:: { BgpPathProperties , Path } ;
15291528 use mg_api_types:: rdb:: prefix:: { Prefix , Prefix4 } ;
1529+ use mg_api_types:: rdb:: {
1530+ DEFAULT_RIB_PRIORITY_BGP , DEFAULT_RIB_PRIORITY_STATIC ,
1531+ } ;
15301532 // init test vars
15311533 let p0 = Prefix :: from ( "192.168.0.0/24" . parse :: < Prefix4 > ( ) . unwrap ( ) ) ;
15321534 let p1 = Prefix :: from ( "192.168.1.0/24" . parse :: < Prefix4 > ( ) . unwrap ( ) ) ;
@@ -2254,13 +2256,13 @@ mod test {
22542256 /// `shutdown` is not part of `Path::Ord` identity.
22552257 #[ test]
22562258 fn test_set_nexthop_shutdown_replaces_path ( ) {
2257- use crate :: {
2258- DEFAULT_RIB_PRIORITY_BGP , DEFAULT_RIB_PRIORITY_STATIC ,
2259- StaticRouteKey ,
2260- } ;
2259+ use crate :: StaticRouteKey ;
22612260 use mg_api_types:: bgp:: peer:: PeerId ;
22622261 use mg_api_types:: rdb:: path:: { BgpPathProperties , Path } ;
22632262 use mg_api_types:: rdb:: prefix:: { Prefix , Prefix4 , Prefix6 } ;
2263+ use mg_api_types:: rdb:: {
2264+ DEFAULT_RIB_PRIORITY_BGP , DEFAULT_RIB_PRIORITY_STATIC ,
2265+ } ;
22642266
22652267 let db = get_test_db ( ) ;
22662268
0 commit comments