Skip to content

Commit ef92009

Browse files
fixup! Add a sample module FilesystemPersister.
1 parent 58b3258 commit ef92009

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning-persister/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,10 @@ mod tests {
152152
extern crate bitcoin;
153153
use crate::FilesystemPersister;
154154
use bitcoin::blockdata::block::{Block, BlockHeader};
155+
use bitcoin::Txid;
155156
use DiskWriteable;
156157
use Error;
158+
use lightning::chain::transaction::OutPoint;
157159
use lightning::{check_closed_broadcast, check_added_monitors};
158160
use lightning::ln::features::InitFeatures;
159161
use lightning::ln::functional_test_utils::*;
@@ -163,18 +165,16 @@ mod tests {
163165
use lightning::util::ser::Writer;
164166
use lightning::util::test_utils;
165167
use std::fs;
168+
use std::io;
166169
#[cfg(not(target_os = "windows"))]
167170
use {
168171
bitcoin::hashes::hex::FromHex,
169172
bitcoin::hashes::sha256::Hash as Sha256,
170173
bitcoin::hashes::Hash,
171-
bitcoin::Txid,
172174
lightning::{unwrap_send_err, get_payment_preimage_hash},
173-
lightning::chain::transaction::OutPoint,
174175
lightning::ln::channelmanager::{PaymentSendFailure, PaymentPreimage, PaymentHash},
175176
lightning::routing::router::get_route,
176177
lightning::util::errors::APIError,
177-
std::io,
178178
};
179179
#[cfg(target_os = "windows")]
180180
use {

0 commit comments

Comments
 (0)