File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -231,36 +231,6 @@ impl io::Write for HexWriter {
231231 }
232232}
233233
234- /*
235- macro_rules! impl_from_bitcoin29_hex {
236- ($ty:ty) => {
237- impl FromHex for $ty {
238- fn from_byte_iter<I>(iter: I) -> Result<Self, Error>
239- where
240- I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
241- {
242- use bitcoin::hashes::hex::Error as Error29;
243-
244- let iter = iter.map(|res| res.map_err(|err| match err {
245- Error::InvalidChar(n) => Error29::InvalidChar(n),
246- Error::OddLengthString(n) => Error29::OddLengthString(n),
247- Error::InvalidLength(m, n) => Error29::InvalidLength(m, n),
248- }));
249- bitcoin::hashes::hex::FromHex::from_byte_iter(iter).map_err(|err| match err {
250- Error29::InvalidChar(n) => Error::InvalidChar(n),
251- Error29::OddLengthString(n) => Error::OddLengthString(n),
252- Error29::InvalidLength(m, n) => Error::InvalidLength(m, n),
253- })
254- }
255- }
256- }
257- }
258-
259- impl_from_bitcoin29_hex!(bitcoin::BlockHash);
260- impl_from_bitcoin29_hex!(bitcoin::ScriptBuf);
261- impl_from_bitcoin29_hex!(bitcoin::Txid);
262- */
263-
264234impl FromHex for Vec < u8 > {
265235 fn from_byte_iter < I > ( iter : I ) -> Result < Self , Error >
266236 where
You can’t perform that action at this time.
0 commit comments