projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
`rustfmt`: `lightning-transaction-sync/tests/integration_tests.rs`
[rust-lightning]
/
fuzz
/
src
/
bech32_parse.rs
diff --git
a/fuzz/src/bech32_parse.rs
b/fuzz/src/bech32_parse.rs
index f3dd5ac9d1e8f27264d548032ed12531c7314dbd..ff465ceea3948fd4d97ea2d18eb9ba49940f0c73 100644
(file)
--- a/
fuzz/src/bech32_parse.rs
+++ b/
fuzz/src/bech32_parse.rs
@@
-9,7
+9,7
@@
use crate::utils::test_logger;
use core::convert::TryFrom;
use crate::utils::test_logger;
use core::convert::TryFrom;
-use lightning::offers::parse::{Bech32Encode, ParseError};
+use lightning::offers::parse::{Bech32Encode,
Bolt12
ParseError};
#[inline]
pub fn do_test<Out: test_logger::Output>(data: &[u8], _out: Out) {
#[inline]
pub fn do_test<Out: test_logger::Output>(data: &[u8], _out: Out) {
@@
-35,8
+35,8
@@
impl AsRef<[u8]> for Bytes {
}
impl TryFrom<Vec<u8>> for Bytes {
}
impl TryFrom<Vec<u8>> for Bytes {
- type Error = ParseError;
- fn try_from(data: Vec<u8>) -> Result<Self, ParseError> {
+ type Error =
Bolt12
ParseError;
+ fn try_from(data: Vec<u8>) -> Result<Self,
Bolt12
ParseError> {
Ok(Bytes(data))
}
}
Ok(Bytes(data))
}
}