Update bech32 dependency

Update `bech32` to the newly released version `0.11.0`.
This commit is contained in:
Tobin C. Harding 2024-02-26 15:31:51 +11:00
parent d85817b880
commit 4e557fa4e6
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
4 changed files with 7 additions and 7 deletions

View File

@ -24,9 +24,9 @@ checksum = "414dcefbc63d77c526a76b3afcf6fbb9b5e2791c19c3aa2297733208750c6e53"
[[package]]
name = "bech32"
version = "0.10.0-beta"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "98f7eed2b2781a6f0b5c903471d48e15f56fb4e1165df8a9a2337fd1a59d45ea"
checksum = "d965446196e3b7decd44aa7ee49e31d630118f90ef12f97900f262eb915c951d"
[[package]]
name = "bincode"

View File

@ -24,9 +24,9 @@ checksum = "414dcefbc63d77c526a76b3afcf6fbb9b5e2791c19c3aa2297733208750c6e53"
[[package]]
name = "bech32"
version = "0.10.0-beta"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "98f7eed2b2781a6f0b5c903471d48e15f56fb4e1165df8a9a2337fd1a59d45ea"
checksum = "d965446196e3b7decd44aa7ee49e31d630118f90ef12f97900f262eb915c951d"
[[package]]
name = "bincode"

View File

@ -29,7 +29,7 @@ rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
base58 = { package = "base58check", version = "0.1.0", default-features = false }
bech32 = { version = "0.10.0-beta", default-features = false, features = ["alloc"] }
bech32 = { version = "0.11.0", default-features = false, features = ["alloc"] }
hashes = { package = "bitcoin_hashes", version = "0.13.0", default-features = false, features = ["alloc", "io"] }
hex = { package = "hex-conservative", version = "0.1.1", default-features = false, features = ["alloc"] }
hex_lit = "0.1.1"

View File

@ -170,9 +170,9 @@ impl fmt::Display for AddressInner {
let program = program.program().as_ref();
if fmt.alternate() {
bech32::segwit::encode_upper_to_fmt_unchecked(fmt, &hrp, version, program)
bech32::segwit::encode_upper_to_fmt_unchecked(fmt, hrp, version, program)
} else {
bech32::segwit::encode_lower_to_fmt_unchecked(fmt, &hrp, version, program)
bech32::segwit::encode_lower_to_fmt_unchecked(fmt, hrp, version, program)
}
}
}