From dac97072a572fb2f802ec724e550867d1a176d13 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 25 May 2023 10:08:55 +1000 Subject: [PATCH] Add BorrowMut to prelude We already have `Borrow`, add `BorrowMut`. --- bitcoin/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitcoin/src/lib.rs b/bitcoin/src/lib.rs index af6e9ed2..99f2ef02 100644 --- a/bitcoin/src/lib.rs +++ b/bitcoin/src/lib.rs @@ -172,13 +172,13 @@ mod io_extras { #[rustfmt::skip] mod prelude { #[cfg(all(not(feature = "std"), not(test)))] - pub use alloc::{string::{String, ToString}, vec::Vec, boxed::Box, borrow::{Borrow, Cow, ToOwned}, slice, rc}; + pub use alloc::{string::{String, ToString}, vec::Vec, boxed::Box, borrow::{Borrow, BorrowMut, Cow, ToOwned}, slice, rc}; #[cfg(all(not(feature = "std"), not(test), any(not(rust_v_1_60), target_has_atomic = "ptr")))] pub use alloc::sync; #[cfg(any(feature = "std", test))] - pub use std::{string::{String, ToString}, vec::Vec, boxed::Box, borrow::{Borrow, Cow, ToOwned}, slice, rc, sync}; + pub use std::{string::{String, ToString}, vec::Vec, boxed::Box, borrow::{Borrow, BorrowMut, Cow, ToOwned}, slice, rc, sync}; #[cfg(all(not(feature = "std"), not(test)))] pub use alloc::collections::{BTreeMap, BTreeSet, btree_map, BinaryHeap};