@@ -152,8 +152,11 @@ mod tests {
152
152
extern crate bitcoin;
153
153
use crate :: FilesystemPersister ;
154
154
use bitcoin:: blockdata:: block:: { Block , BlockHeader } ;
155
+ use bitcoin:: hashes:: hex:: FromHex ;
156
+ use bitcoin:: Txid ;
155
157
use DiskWriteable ;
156
158
use Error ;
159
+ use lightning:: chain:: transaction:: OutPoint ;
157
160
use lightning:: { check_closed_broadcast, check_added_monitors} ;
158
161
use lightning:: ln:: features:: InitFeatures ;
159
162
use lightning:: ln:: functional_test_utils:: * ;
@@ -163,18 +166,15 @@ mod tests {
163
166
use lightning:: util:: ser:: Writer ;
164
167
use lightning:: util:: test_utils;
165
168
use std:: fs;
169
+ use std:: io;
166
170
#[ cfg( not( target_os = "windows" ) ) ]
167
171
use {
168
- bitcoin:: hashes:: hex:: FromHex ,
169
172
bitcoin:: hashes:: sha256:: Hash as Sha256 ,
170
173
bitcoin:: hashes:: Hash ,
171
- bitcoin:: Txid ,
172
174
lightning:: { unwrap_send_err, get_payment_preimage_hash} ,
173
- lightning:: chain:: transaction:: OutPoint ,
174
175
lightning:: ln:: channelmanager:: { PaymentSendFailure , PaymentPreimage , PaymentHash } ,
175
176
lightning:: routing:: router:: get_route,
176
177
lightning:: util:: errors:: APIError ,
177
- std:: io,
178
178
} ;
179
179
#[ cfg( target_os = "windows" ) ]
180
180
use {
0 commit comments