Skip to content

Commit 98d15f2

Browse files
committed
Clean up imports in lightning-types
To remove the now-redundant `hex_conservative` explicit dependency.
1 parent cc6e2a0 commit 98d15f2

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

lightning-types/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ _test_utils = []
1717

1818
[dependencies]
1919
bitcoin = { version = "0.32.2", default-features = false }
20-
# TODO: Once we switch to bitcoin 0.32 drop this explicit dep:
21-
hex-conservative = { version = "0.2", default-features = false }
2220
bech32 = { version = "0.9", default-features = false }
2321

2422
[lints]

lightning-types/src/payment.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ use alloc::vec::Vec;
1414
use core::borrow::Borrow;
1515

1616
use bitcoin::hashes::{sha256::Hash as Sha256, Hash as _};
17-
18-
// TODO: Once we switch to rust-bitcoin 0.32, import this as bitcoin::hex
19-
use hex_conservative::display::impl_fmt_traits;
17+
use bitcoin::hex::display::impl_fmt_traits;
2018

2119
/// The payment hash is the hash of the [`PaymentPreimage`] which is the value used to lock funds
2220
/// in HTLCs while they transit the lightning network.

0 commit comments

Comments
 (0)