diff --git a/CHANGELOG.md b/CHANGELOG.md index f5517e6..8094394 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## next +### Changed +- Remove trait bounds from Map/Set JsonSchema impls. They are unnecessary as we never create/use any instances of these types. + ## [0.6.3] - 2019-12-27 - No actual code changes - this version was just published to fix broken README on crates.io diff --git a/schemars/src/json_schema_impls/maps.rs b/schemars/src/json_schema_impls/maps.rs index 0fc3214..c109b00 100644 --- a/schemars/src/json_schema_impls/maps.rs +++ b/schemars/src/json_schema_impls/maps.rs @@ -39,8 +39,8 @@ macro_rules! map_impl { }; } -map_impl!( JsonSchema for std::collections::BTreeMap); -map_impl!( JsonSchema for std::collections::HashMap); +map_impl!( JsonSchema for std::collections::BTreeMap); +map_impl!( JsonSchema for std::collections::HashMap); #[cfg(test)] mod tests { diff --git a/schemars/src/json_schema_impls/sequences.rs b/schemars/src/json_schema_impls/sequences.rs index ab146fe..1e79210 100644 --- a/schemars/src/json_schema_impls/sequences.rs +++ b/schemars/src/json_schema_impls/sequences.rs @@ -29,9 +29,9 @@ macro_rules! seq_impl { }; } -seq_impl!( JsonSchema for std::collections::BinaryHeap); -seq_impl!( JsonSchema for std::collections::BTreeSet); -seq_impl!( JsonSchema for std::collections::HashSet); +seq_impl!( JsonSchema for std::collections::BinaryHeap); +seq_impl!( JsonSchema for std::collections::BTreeSet); +seq_impl!( JsonSchema for std::collections::HashSet); seq_impl!( JsonSchema for std::collections::LinkedList); seq_impl!( JsonSchema for Vec); seq_impl!( JsonSchema for std::collections::VecDeque);