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> {
144144 inflight_htlcs : InFlightHtlcs
145145 ) -> Result < Route , msgs:: LightningError > {
146146 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 {
148149 assert_eq ! ( find_route_query, * params) ;
149150 if let Ok ( ref route) = find_route_res {
150151 assert_eq ! ( route. route_params, Some ( find_route_query) ) ;
@@ -209,7 +210,7 @@ impl<'a> Router for TestRouter<'a> {
209210
210211 if let Ok ( route) = & route_res {
211212 // 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:
213214 let ser = route. encode ( ) ;
214215 assert_eq ! ( Route :: read( & mut & ser[ ..] ) . unwrap( ) , * route) ;
215216 }
You can’t perform that action at this time.
0 commit comments