@@ -460,8 +460,8 @@ mod tests {
460
460
use lightning:: util:: events:: { Event , MessageSendEventsProvider } ;
461
461
use secp256k1:: { SecretKey , PublicKey , Secp256k1 } ;
462
462
use std:: cell:: RefCell ;
463
+ use std:: collections:: VecDeque ;
463
464
use std:: time:: { SystemTime , Duration } ;
464
- use std:: collections:: LinkedList ;
465
465
use std:: sync:: Mutex ;
466
466
467
467
fn invoice ( payment_preimage : PaymentPreimage ) -> Invoice {
@@ -1052,13 +1052,13 @@ mod tests {
1052
1052
}
1053
1053
1054
1054
struct TestScorer {
1055
- expectations : std :: collections :: VecDeque < u64 > ,
1055
+ expectations : VecDeque < u64 > ,
1056
1056
}
1057
1057
1058
1058
impl TestScorer {
1059
1059
fn new ( ) -> Self {
1060
1060
Self {
1061
- expectations : std :: collections :: VecDeque :: new ( ) ,
1061
+ expectations : VecDeque :: new ( ) ,
1062
1062
}
1063
1063
}
1064
1064
@@ -1093,15 +1093,15 @@ mod tests {
1093
1093
}
1094
1094
1095
1095
struct TestPayer {
1096
- expectations : core:: cell:: RefCell < std :: collections :: VecDeque < u64 > > ,
1096
+ expectations : core:: cell:: RefCell < VecDeque < u64 > > ,
1097
1097
attempts : core:: cell:: RefCell < usize > ,
1098
1098
failing_on_attempt : Option < usize > ,
1099
1099
}
1100
1100
1101
1101
impl TestPayer {
1102
1102
fn new ( ) -> Self {
1103
1103
Self {
1104
- expectations : core:: cell:: RefCell :: new ( std :: collections :: VecDeque :: new ( ) ) ,
1104
+ expectations : core:: cell:: RefCell :: new ( VecDeque :: new ( ) ) ,
1105
1105
attempts : core:: cell:: RefCell :: new ( 0 ) ,
1106
1106
failing_on_attempt : None ,
1107
1107
}
@@ -1188,7 +1188,7 @@ mod tests {
1188
1188
}
1189
1189
1190
1190
// *** Full Featured Functional Tests with a Real ChannelManager ***
1191
- struct ManualRouter ( Mutex < LinkedList < Result < Route , LightningError > > > ) ;
1191
+ struct ManualRouter ( Mutex < VecDeque < Result < Route , LightningError > > > ) ;
1192
1192
1193
1193
impl < S : routing:: Score > Router < S > for ManualRouter {
1194
1194
fn find_route ( & self , _payer : & PublicKey , _params : & RouteParameters , _first_hops : Option < & [ & ChannelDetails ] > , _scorer : & S )
@@ -1238,7 +1238,7 @@ mod tests {
1238
1238
] ,
1239
1239
payee : Some ( Payee :: new ( nodes[ 1 ] . node . get_our_node_id ( ) ) ) ,
1240
1240
} ;
1241
- let mut routes = LinkedList :: new ( ) ;
1241
+ let mut routes = VecDeque :: new ( ) ;
1242
1242
routes. push_back ( Ok ( route. clone ( ) ) ) ;
1243
1243
// On retry, split the payment across both channels.
1244
1244
route. paths [ 0 ] [ 0 ] . fee_msat = 50_000_001 ;
0 commit comments