format code
This commit is contained in:
parent
0d2058ddb4
commit
10f2be69be
@ -85,7 +85,11 @@ impl YaSerdeField {
|
|||||||
);
|
);
|
||||||
|
|
||||||
Ident::new(
|
Ident::new(
|
||||||
&format!("__Visitor_{}_{}", label.replace(".", "_").to_camel_case(), struct_id),
|
&format!(
|
||||||
|
"__Visitor_{}_{}",
|
||||||
|
label.replace(".", "_").to_camel_case(),
|
||||||
|
struct_id
|
||||||
|
),
|
||||||
self.get_span(),
|
self.get_span(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -448,7 +448,11 @@ fn build_visitor_ident(label: &str, span: Span, struct_name: Option<&syn::Path>)
|
|||||||
);
|
);
|
||||||
|
|
||||||
Ident::new(
|
Ident::new(
|
||||||
&format!("__Visitor_{}_{}", label.replace(".", "_").to_camel_case(), struct_id),
|
&format!(
|
||||||
|
"__Visitor_{}_{}",
|
||||||
|
label.replace(".", "_").to_camel_case(),
|
||||||
|
struct_id
|
||||||
|
),
|
||||||
span,
|
span,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user