Skip to content

Commit 55ecd88

Browse files
committed
Rustfmt
1 parent 0784cc1 commit 55ecd88

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

examples/src/silentpaymentscanner.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ use bitcoin::hashes::Hash;
77
use bitcoin::{PrivateKey, XOnlyPublicKey};
88
use bitcoinkernel::{
99
BlockManagerOptions, ChainType, ChainstateLoadOptions, ChainstateManager,
10-
ChainstateManagerOptions, Context, ContextBuilder, KernelError,
11-
Log, Logger,
10+
ChainstateManagerOptions, Context, ContextBuilder, KernelError, Log, Logger,
1211
};
1312
use env_logger::Builder;
1413
use log::LevelFilter;

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,14 +711,14 @@ pub struct UnownedBlock {
711711

712712
impl UnownedBlock {
713713
fn new(block: *const kernel_BlockPointer) -> UnownedBlock {
714-
UnownedBlock{ inner: block }
714+
UnownedBlock { inner: block }
715715
}
716716
}
717717

718718
impl Into<Vec<u8>> for UnownedBlock {
719719
fn into(self) -> Vec<u8> {
720720
let raw_block = unsafe { kernel_copy_block_pointer_data(self.inner) };
721-
let vec = unsafe {
721+
let vec = unsafe {
722722
std::slice::from_raw_parts((*raw_block).data, (*raw_block).size.try_into().unwrap())
723723
}
724724
.to_vec();

0 commit comments

Comments
 (0)