File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,8 @@ impl<'a> Router for TestRouter<'a> {
144
144
inflight_htlcs : InFlightHtlcs
145
145
) -> Result < Route , msgs:: LightningError > {
146
146
let route_res;
147
- if let Some ( ( find_route_query, find_route_res) ) = self . next_routes . lock ( ) . unwrap ( ) . pop_front ( ) {
147
+ let next_route_opt = self . next_routes . lock ( ) . unwrap ( ) . pop_front ( ) ;
148
+ if let Some ( ( find_route_query, find_route_res) ) = next_route_opt {
148
149
assert_eq ! ( find_route_query, * params) ;
149
150
if let Ok ( ref route) = find_route_res {
150
151
assert_eq ! ( route. route_params, Some ( find_route_query) ) ;
@@ -209,7 +210,7 @@ impl<'a> Router for TestRouter<'a> {
209
210
210
211
if let Ok ( route) = & route_res {
211
212
// Previously, `Route`s failed to round-trip through serialization due to a write/read
212
- // mismatch. Thus, hwere we test all test-generated routes round-trip:
213
+ // mismatch. Thus, here we test all test-generated routes round-trip:
213
214
let ser = route. encode ( ) ;
214
215
assert_eq ! ( Route :: read( & mut & ser[ ..] ) . unwrap( ) , * route) ;
215
216
}
You can’t perform that action at this time.
0 commit comments