diff --git a/src/defmt.rs b/src/defmt.rs index c50963c0..6d547c09 100644 --- a/src/defmt.rs +++ b/src/defmt.rs @@ -1,6 +1,6 @@ //! Defmt implementations for heapless types -use crate::{storage::Storage, vec::VecInner}; +use crate::{storage::Storage, string::StringInner, vec::VecInner}; use defmt::Formatter; impl defmt::Format for VecInner @@ -12,7 +12,7 @@ where } } -impl defmt::Format for crate::String +impl defmt::Format for StringInner where u8: defmt::Format, { diff --git a/src/ufmt.rs b/src/ufmt.rs index fd0b276c..002ce04c 100644 --- a/src/ufmt.rs +++ b/src/ufmt.rs @@ -1,7 +1,7 @@ -use crate::{storage::Storage, string::String, vec::VecInner}; +use crate::{storage::Storage, string::StringInner, vec::VecInner}; use ufmt_write::uWrite; -impl uWrite for String { +impl uWrite for StringInner { type Error = (); fn write_str(&mut self, s: &str) -> Result<(), Self::Error> { self.push_str(s)