Skip to content

Commit

Permalink
Clean up imports in lightning-types
Browse files Browse the repository at this point in the history
To remove the now-redundant `hex_conservative` explicit dependency.
  • Loading branch information
TheBlueMatt committed Sep 9, 2024
1 parent cc6e2a0 commit 98d15f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions lightning-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ _test_utils = []

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

[lints]
Expand Down
4 changes: 1 addition & 3 deletions lightning-types/src/payment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ use alloc::vec::Vec;
use core::borrow::Borrow;

use bitcoin::hashes::{sha256::Hash as Sha256, Hash as _};

// TODO: Once we switch to rust-bitcoin 0.32, import this as bitcoin::hex
use hex_conservative::display::impl_fmt_traits;
use bitcoin::hex::display::impl_fmt_traits;

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

0 comments on commit 98d15f2

Please sign in to comment.