format code

This commit is contained in:
Marc-Antoine Arnaud 2020-05-20 17:38:31 +02:00
parent 0d2058ddb4
commit 10f2be69be
2 changed files with 10 additions and 2 deletions

View File

@ -85,7 +85,11 @@ impl YaSerdeField {
);
Ident::new(
&format!("__Visitor_{}_{}", label.replace(".", "_").to_camel_case(), struct_id),
&format!(
"__Visitor_{}_{}",
label.replace(".", "_").to_camel_case(),
struct_id
),
self.get_span(),
)
}

View File

@ -448,7 +448,11 @@ fn build_visitor_ident(label: &str, span: Span, struct_name: Option<&syn::Path>)
);
Ident::new(
&format!("__Visitor_{}_{}", label.replace(".", "_").to_camel_case(), struct_id),
&format!(
"__Visitor_{}_{}",
label.replace(".", "_").to_camel_case(),
struct_id
),
span,
)
}