We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b49637 + 9082d95 commit e0f5cc4Copy full SHA for e0f5cc4
CHANGELOG.md
@@ -7,6 +7,11 @@ project adheres to [Semantic Versioning](http://semver.org/).
7
8
## [Unreleased]
9
10
+### Added
11
+
12
+- Add support for `str_collect` serialization.
13
14
15
## [0.5.0] - 2022-12-06
16
17
### Added
src/ser/mod.rs
@@ -429,11 +429,11 @@ impl<'a> ser::Serializer for &'a mut Serializer {
429
self.serialize_struct(name, len)
430
}
431
432
- fn collect_str<T: ?Sized>(self, _value: &T) -> Result<Self::Ok>
+ fn collect_str<T: ?Sized>(self, value: &T) -> Result<Self::Ok>
433
where
434
T: fmt::Display,
435
{
436
- unreachable!()
+ self.serialize_str(&value.to_string())
437
438
439
0 commit comments