Skip to content

Commit d20a0c5

Browse files
committed
chore: Use bundled hex crate
1 parent 2500390 commit d20a0c5

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Cargo.lock

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ serde = ["dep:serde", "dep:serde_json"]
2222

2323
[dependencies]
2424
base64 = "0.21.2"
25-
hex-conservative = "0.1.1"
2625
pest = "2.1.3"
2726
pest_derive = "2.7.1"
2827
serde = { version = "1.0.188", features = ["derive"], optional = true }

src/value.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::fmt;
22
use std::sync::Arc;
33

44
use either::Either;
5-
use hex_conservative::DisplayHex;
5+
use miniscript::bitcoin::hex::DisplayHex;
66
use miniscript::iter::{Tree, TreeLike};
77
use simplicity::types::Final as SimType;
88
use simplicity::{BitCollector, Value as SimValue, ValueRef};
@@ -623,7 +623,7 @@ impl Value {
623623

624624
/// Create a value from the given `hexadecimal` string and type.
625625
pub fn parse_hexadecimal(hexadecimal: &Hexadecimal, ty: &ResolvedType) -> Result<Self, Error> {
626-
use hex_conservative::FromHex;
626+
use miniscript::bitcoin::hex::FromHex;
627627

628628
let expected_byte_len = match ty.as_inner() {
629629
TypeInner::UInt(int) => int.byte_width(),

0 commit comments

Comments
 (0)