Identical signature for std and no_std collect_str

This commit is contained in:
David Tolnay
2017-03-05 16:17:03 -08:00
parent a9a05350a9
commit 880b27b19e
+1 -1
View File
@@ -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"))