From ae07bdbdbc815a7d80178bb8e214cd6b1f369556 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 12 Dec 2023 08:55:03 +1100 Subject: [PATCH] Remove ToOwned from prelude We are not using the `ToOwned` trait, remove it. Found by clippy. --- units/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/units/src/lib.rs b/units/src/lib.rs index b3afb43a..ed5d2609 100644 --- a/units/src/lib.rs +++ b/units/src/lib.rs @@ -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}; }