Identical signature for std and no_std collect_str
This commit is contained in:
parent
a9a05350a9
commit
880b27b19e
@ -638,7 +638,7 @@ pub trait Serializer: Sized {
|
||||
///
|
||||
/// The default implementation returns an error unconditionally.
|
||||
#[cfg(not(any(feature = "std", feature = "collections")))]
|
||||
fn collect_str<T>(self, _value: &T) -> Result<Self::Ok, Self::Error>
|
||||
fn collect_str<T: ?Sized>(self, _value: &T) -> Result<Self::Ok, Self::Error>
|
||||
where T: Display,
|
||||
{
|
||||
Err(Error::custom("Default impl of collect_str errors out for no_std builds"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user