From fbe85f399d907087cf1098937d8639159419353a Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 5 Mar 2017 16:22:02 -0800 Subject: [PATCH] Force no_std formats to implement collect_str in the future --- serde/src/ser/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/serde/src/ser/mod.rs b/serde/src/ser/mod.rs index e12e5998..3cc87d4e 100644 --- a/serde/src/ser/mod.rs +++ b/serde/src/ser/mod.rs @@ -641,6 +641,8 @@ pub trait Serializer: Sized { fn collect_str(self, _value: &T) -> Result where T: Display, { + // TODO https://github.com/serde-rs/serde/issues/805 + // Remove this impl and force no_std formats to implement collect_str. Err(Error::custom("Default impl of collect_str errors out for no_std builds")) } }