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:
    ACK ae07bdbdbc

Tree-SHA512: 8d7d271a279027bd449a2c23c5a5df2217d456c7ca2f286bbe57934f776bb10cb882ceabb52cdd41d5d622f864eefd2bcbb49b68dcfa27203039fd62edcd9d73
This commit is contained in:
Andrew Poelstra 2023-12-11 23:53:16 +00:00
commit 6fe073b324
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 2 additions and 2 deletions

View File

@ -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};
}