Remove extraneous "and" from tuple schema names

This commit is contained in:
Graham Esau 2021-04-05 20:47:03 +01:00
parent b2b733ba5c
commit 9c68e080d6

View file

@ -9,7 +9,9 @@ macro_rules! tuple_impls {
no_ref_schema!();
fn schema_name() -> String {
["Tuple_of".to_owned()$(, $name::schema_name())+].join("_and_")
let mut name = "Tuple_of_".to_owned();
name.push_str(&[$($name::schema_name()),+].join("_and_"));
name
}
fn json_schema(gen: &mut SchemaGenerator) -> Schema {