Skip to content

Commit

Permalink
Touch up PR 1202
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 25, 2023
1 parent 9e317fc commit 6eb0fdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cxx_string.rs
Expand Up @@ -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;
Expand Down Expand Up @@ -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(())
Expand Down

0 comments on commit 6eb0fdd

Please sign in to comment.