@@ -448,8 +448,8 @@ mod tests {
448
448
use lightning:: util:: events:: { Event , MessageSendEventsProvider } ;
449
449
use secp256k1:: { SecretKey , PublicKey , Secp256k1 } ;
450
450
use std:: cell:: RefCell ;
451
+ use std:: collections:: VecDeque ;
451
452
use std:: time:: { SystemTime , Duration } ;
452
- use std:: collections:: LinkedList ;
453
453
use std:: sync:: Mutex ;
454
454
455
455
fn invoice ( payment_preimage : PaymentPreimage ) -> Invoice {
@@ -1040,13 +1040,13 @@ mod tests {
1040
1040
}
1041
1041
1042
1042
struct TestScorer {
1043
- expectations : std :: collections :: VecDeque < u64 > ,
1043
+ expectations : VecDeque < u64 > ,
1044
1044
}
1045
1045
1046
1046
impl TestScorer {
1047
1047
fn new ( ) -> Self {
1048
1048
Self {
1049
- expectations : std :: collections :: VecDeque :: new ( ) ,
1049
+ expectations : VecDeque :: new ( ) ,
1050
1050
}
1051
1051
}
1052
1052
@@ -1081,15 +1081,15 @@ mod tests {
1081
1081
}
1082
1082
1083
1083
struct TestPayer {
1084
- expectations : core:: cell:: RefCell < std :: collections :: VecDeque < u64 > > ,
1084
+ expectations : core:: cell:: RefCell < VecDeque < u64 > > ,
1085
1085
attempts : core:: cell:: RefCell < usize > ,
1086
1086
failing_on_attempt : Option < usize > ,
1087
1087
}
1088
1088
1089
1089
impl TestPayer {
1090
1090
fn new ( ) -> Self {
1091
1091
Self {
1092
- expectations : core:: cell:: RefCell :: new ( std :: collections :: VecDeque :: new ( ) ) ,
1092
+ expectations : core:: cell:: RefCell :: new ( VecDeque :: new ( ) ) ,
1093
1093
attempts : core:: cell:: RefCell :: new ( 0 ) ,
1094
1094
failing_on_attempt : None ,
1095
1095
}
@@ -1176,7 +1176,7 @@ mod tests {
1176
1176
}
1177
1177
1178
1178
// *** Full Featured Functional Tests with a Real ChannelManager ***
1179
- struct ManualRouter ( Mutex < LinkedList < Result < Route , LightningError > > > ) ;
1179
+ struct ManualRouter ( Mutex < VecDeque < Result < Route , LightningError > > > ) ;
1180
1180
1181
1181
impl < S : routing:: Score > Router < S > for ManualRouter {
1182
1182
fn find_route ( & self , _payer : & PublicKey , _params : & RouteParameters , _first_hops : Option < & [ & ChannelDetails ] > , _scorer : & S )
@@ -1226,7 +1226,7 @@ mod tests {
1226
1226
] ,
1227
1227
payee : Some ( Payee :: new ( nodes[ 1 ] . node . get_our_node_id ( ) ) ) ,
1228
1228
} ;
1229
- let mut routes = LinkedList :: new ( ) ;
1229
+ let mut routes = VecDeque :: new ( ) ;
1230
1230
routes. push_back ( Ok ( route. clone ( ) ) ) ;
1231
1231
// On retry, split the payment across both channels.
1232
1232
route. paths [ 0 ] [ 0 ] . fee_msat = 50_000_001 ;
@@ -1271,7 +1271,7 @@ mod tests {
1271
1271
] ,
1272
1272
payee : Some ( Payee :: new ( nodes[ 1 ] . node . get_our_node_id ( ) ) ) ,
1273
1273
} ;
1274
- let mut routes = LinkedList :: new ( ) ;
1274
+ let mut routes = VecDeque :: new ( ) ;
1275
1275
routes. push_back ( Ok ( route. clone ( ) ) ) ;
1276
1276
// On retry, split the payment across both channels.
1277
1277
route. paths . push ( route. paths [ 0 ] . clone ( ) ) ;
0 commit comments