From 880b27b19ed3eb208ddfdcb8e0128a0b7aea20f7 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 5 Mar 2017 16:17:03 -0800 Subject: [PATCH] Identical signature for std and no_std collect_str --- serde/src/ser/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serde/src/ser/mod.rs b/serde/src/ser/mod.rs index f69ab635..e12e5998 100644 --- a/serde/src/ser/mod.rs +++ b/serde/src/ser/mod.rs @@ -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(self, _value: &T) -> Result + fn collect_str(self, _value: &T) -> Result where T: Display, { Err(Error::custom("Default impl of collect_str errors out for no_std builds"))