mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 05:31:02 +00:00
Identical signature for std and no_std collect_str
This commit is contained in:
@@ -638,7 +638,7 @@ pub trait Serializer: Sized {
|
|||||||
///
|
///
|
||||||
/// The default implementation returns an error unconditionally.
|
/// The default implementation returns an error unconditionally.
|
||||||
#[cfg(not(any(feature = "std", feature = "collections")))]
|
#[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,
|
where T: Display,
|
||||||
{
|
{
|
||||||
Err(Error::custom("Default impl of collect_str errors out for no_std builds"))
|
Err(Error::custom("Default impl of collect_str errors out for no_std builds"))
|
||||||
|
|||||||
Reference in New Issue
Block a user