From 6eb0fdd1662bd92a6aad3a16a603ffcc12b11c8b Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 25 Mar 2023 13:26:04 -0700 Subject: [PATCH] Touch up PR 1202 --- src/cxx_string.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cxx_string.rs b/src/cxx_string.rs index 7f6d68719..d5d0af4a4 100644 --- a/src/cxx_string.rs +++ b/src/cxx_string.rs @@ -5,7 +5,7 @@ use alloc::borrow::Cow; #[cfg(feature = "alloc")] use alloc::string::String; use core::cmp::Ordering; -use core::fmt::{self, Debug, Display, Write}; +use core::fmt::{self, Debug, Display}; use core::hash::{Hash, Hasher}; use core::marker::{PhantomData, PhantomPinned}; use core::mem::MaybeUninit; @@ -257,7 +257,7 @@ impl Hash for CxxString { } } -impl Write for Pin<&mut CxxString> { +impl fmt::Write for Pin<&mut CxxString> { fn write_str(&mut self, s: &str) -> fmt::Result { self.as_mut().push_str(s); Ok(())