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.
This commit is contained in:
David Tolnay 2017-03-05 16:24:42 -08:00
parent fbe85f399d
commit 36da8a5cee
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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"))
}
}