Merge rust-bitcoin/rust-bitcoin#2279: Remove ToOwned from prelude
ae07bdbdbc
Remove ToOwned from prelude (Tobin C. Harding) Pull request description: We are not using the `ToOwned` trait, remove it. Found by clippy. ACKs for top commit: apoelstra: ACKae07bdbdbc
Tree-SHA512: 8d7d271a279027bd449a2c23c5a5df2217d456c7ca2f286bbe57934f776bb10cb882ceabb52cdd41d5d622f864eefd2bcbb49b68dcfa27203039fd62edcd9d73
This commit is contained in:
commit
6fe073b324
|
@ -40,8 +40,8 @@ pub use self::amount::{Amount, ParseAmountError, SignedAmount};
|
|||
#[rustfmt::skip]
|
||||
mod prelude {
|
||||
#[cfg(all(feature = "alloc", not(feature = "std"), not(test)))]
|
||||
pub use alloc::{string::{String, ToString}, borrow::ToOwned};
|
||||
pub use alloc::string::{String, ToString};
|
||||
|
||||
#[cfg(any(feature = "std", test))]
|
||||
pub use std::{string::{String, ToString}, borrow::ToOwned};
|
||||
pub use std::string::{String, ToString};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue