Remove imports of TryFrom and TryInto

Now that MSRV is Rust 1.56.1 we no longer need to explicitly import
`TryFrom` and `TryInto`.

No clue why clippy didn't find these for us.
This commit is contained in:
Tobin C. Harding 2023-11-24 03:51:57 +11:00
parent 4d5415f835
commit 761de886be
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
20 changed files with 0 additions and 26 deletions

View File

@ -6,7 +6,6 @@
//! strings respectively.
//!
use core::convert::TryInto;
use core::{fmt, iter, slice, str};
use hashes::{sha256d, Hash};

View File

@ -39,7 +39,6 @@
//!
use core::cmp::{self, Ordering};
use core::convert::TryInto;
use core::fmt::{self, Display, Formatter};
use hashes::{siphash24, Hash};

View File

@ -6,7 +6,6 @@
//! at <https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki>.
//!
use core::convert::TryInto;
use core::default::Default;
use core::ops::Index;
use core::str::FromStr;

View File

@ -6,7 +6,6 @@
//! whether bit 22 of the `u32` consensus value is set.
//!
use core::convert::TryFrom;
use core::fmt;
#[cfg(all(test, mutate))]

View File

@ -1,7 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
use core::convert::TryInto;
use crate::blockdata::opcodes::{self, Opcode};
use crate::blockdata::script::{read_uint_iter, Error, PushBytes, Script, ScriptBuf, UintError};

View File

@ -7,7 +7,6 @@
//!
//! [BIP141]: <https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki>
use core::convert::TryInto;
use core::fmt;
use crate::blockdata::script::witness_version::WitnessVersion;

View File

@ -7,7 +7,6 @@
//!
//! [BIP141]: <https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki>
use core::convert::TryFrom;
use core::fmt;
use core::str::FromStr;

View File

@ -11,7 +11,6 @@
//! This module provides the structures and functions needed to support transactions.
//!
use core::convert::TryFrom;
use core::default::Default;
use core::{cmp, fmt, str};

View File

@ -5,7 +5,6 @@
//! This module contains the [`Witness`] struct and related methods to operate on it
//!
use core::convert::TryInto;
use core::fmt;
use core::ops::Index;

View File

@ -18,7 +18,6 @@
//! assert_eq!(&bytes[..], &[0xF9, 0xBE, 0xB4, 0xD9]);
//! ```
use core::convert::TryFrom;
use core::fmt;
use core::fmt::Display;
use core::str::FromStr;

View File

@ -6,7 +6,6 @@
//! are used for (de)serializing Bitcoin objects for transmission on the network.
//!
use core::convert::TryFrom;
use core::{fmt, iter};
use hashes::{sha256d, Hash};

View File

@ -20,7 +20,6 @@ pub mod message_filter;
#[cfg(feature = "std")]
pub mod message_network;
use core::convert::TryFrom;
use core::str::FromStr;
use core::{fmt, ops};

View File

@ -1,6 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
use core::convert::TryFrom;
use core::fmt;
use core::str::FromStr;

View File

@ -1,7 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
use core::convert::TryFrom;
use crate::bip32::{ChildNumber, DerivationPath, Fingerprint, Xpub};
use crate::blockdata::transaction::Transaction;
use crate::consensus::encode::MAX_VEC_SIZE;

View File

@ -1,6 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
use core::convert::TryFrom;
use core::fmt;
use core::str::FromStr;

View File

@ -1,7 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
use core::convert::TryFrom;
use secp256k1::XOnlyPublicKey;
use {core, secp256k1};

View File

@ -6,7 +6,6 @@
//! <https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki>.
//!
use core::convert::TryFrom;
use core::fmt;
use super::serialize::{Deserialize, Serialize};

View File

@ -6,8 +6,6 @@
//! according to the BIP-174 specification.
//!
use core::convert::{TryFrom, TryInto};
use hashes::{hash160, ripemd160, sha256, sha256d, Hash};
use secp256k1::{self, XOnlyPublicKey};
@ -386,8 +384,6 @@ fn key_source_len(key_source: &KeySource) -> usize { 4 + 4 * (key_source.1).as_r
#[cfg(test)]
mod tests {
use core::convert::TryFrom;
use super::*;
// Composes tree matching a given depth map, filled with dumb script leafs,

View File

@ -6,7 +6,6 @@
//!
use core::cmp::Reverse;
use core::convert::TryFrom;
use core::fmt;
use core::iter::FusedIterator;

View File

@ -1,7 +1,6 @@
//! Tests PSBT integration vectors from BIP 174
//! defined at <https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki#test-vectors>
use core::convert::TryFrom;
use std::collections::BTreeMap;
use std::str::FromStr;