From 36da8a5cee13b0d34a652b3231f2f62d10abaec6 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 5 Mar 2017 16:24:42 -0800 Subject: [PATCH] Error message geared toward serializer users The previous message was targeted toward Serializer implementors, which is not the group that will be seeing this message most often. --- 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 3cc87d4e..02c43657 100644 --- a/serde/src/ser/mod.rs +++ b/serde/src/ser/mod.rs @@ -643,7 +643,7 @@ pub trait Serializer: Sized { { // 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")) + Err(Error::custom("this no_std format does not support serializing strings with collect_str")) } }