@@ -1,4 +1,5 @@
|
||||
use crate::common::attribute::YaSerdeAttribute;
|
||||
use heck::CamelCase;
|
||||
use proc_macro2::Span;
|
||||
use proc_macro2::{Ident, TokenStream};
|
||||
use std::fmt;
|
||||
@@ -84,7 +85,7 @@ impl YaSerdeField {
|
||||
);
|
||||
|
||||
Ident::new(
|
||||
&format!("__Visitor_{}_{}", label.replace(".", "_"), struct_id),
|
||||
&format!("__Visitor_{}_{}", label.replace(".", "_").to_camel_case(), struct_id),
|
||||
self.get_span(),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
use crate::common::{Field, YaSerdeAttribute, YaSerdeField};
|
||||
use crate::de::build_default_value::build_default_value;
|
||||
use heck::CamelCase;
|
||||
use proc_macro2::{Span, TokenStream};
|
||||
use syn::{DataStruct, Ident};
|
||||
|
||||
@@ -447,7 +448,7 @@ fn build_visitor_ident(label: &str, span: Span, struct_name: Option<&syn::Path>)
|
||||
);
|
||||
|
||||
Ident::new(
|
||||
&format!("__Visitor_{}_{}", label.replace(".", "_"), struct_id),
|
||||
&format!("__Visitor_{}_{}", label.replace(".", "_").to_camel_case(), struct_id),
|
||||
span,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user