Skip to content

Commit e4ca5aa

Browse files
committed
Format using cargo fmt
1 parent 707d0e6 commit e4ca5aa

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

protocol/src/hasher.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
use crate::alloc::string::ToString;
21
#[cfg(feature = "bincode")]
32
use bincode::{Decode, Encode};
43
use bitcoin::{Amount, OutPoint};
54
#[cfg(feature = "serde")]
65
use serde::{Deserialize, Serialize};
76

7+
use crate::alloc::string::ToString;
8+
89
pub type Hash = [u8; 32];
910

1011
pub trait KeyHasher {

protocol/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ extern crate core;
55

66
pub extern crate bitcoin;
77

8-
use alloc::vec;
9-
use alloc::vec::Vec;
8+
use alloc::{vec, vec::Vec};
109

1110
#[cfg(feature = "bincode")]
1211
use bincode::{Decode, Encode};

protocol/src/script.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
use alloc::collections::btree_map::BTreeMap;
2-
use alloc::vec::Vec;
1+
use alloc::{collections::btree_map::BTreeMap, vec::Vec};
32

43
#[cfg(feature = "bincode")]
54
use bincode::{Decode, Encode};

protocol/src/validate.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
use alloc::collections::btree_map::BTreeMap;
2-
use alloc::vec;
3-
use alloc::vec::Vec;
1+
use alloc::{collections::btree_map::BTreeMap, vec, vec::Vec};
42

53
#[cfg(feature = "bincode")]
64
use bincode::{Decode, Encode};

0 commit comments

Comments
 (0)