mirror of
https://github.com/serde-rs/serde.git
synced 2025-10-02 23:35:26 +00:00
parent
85d0c8e4e8
commit
ae665a1c05
@ -80,12 +80,11 @@ fn expand_deriving_serialize<>(cx: &mut ExtCtxt,
|
|||||||
generics: LifetimeBounds {
|
generics: LifetimeBounds {
|
||||||
lifetimes: Vec::new(),
|
lifetimes: Vec::new(),
|
||||||
bounds: vec![
|
bounds: vec![
|
||||||
("__S", None, vec![]),
|
("__S", vec![]),
|
||||||
("__R", None, vec![]),
|
("__R", vec![]),
|
||||||
("__E", None, vec![]),
|
("__E", vec![]),
|
||||||
(
|
(
|
||||||
"__V",
|
"__V",
|
||||||
None,
|
|
||||||
vec![
|
vec![
|
||||||
Path::new_(
|
Path::new_(
|
||||||
vec!["serde2", "ser", "Visitor"],
|
vec!["serde2", "ser", "Visitor"],
|
||||||
|
@ -83,10 +83,10 @@ fn expand_deriving_serialize(cx: &mut ExtCtxt,
|
|||||||
additional_bounds: Vec::new(),
|
additional_bounds: Vec::new(),
|
||||||
generics: LifetimeBounds {
|
generics: LifetimeBounds {
|
||||||
lifetimes: Vec::new(),
|
lifetimes: Vec::new(),
|
||||||
bounds: vec!(("__S", None, vec!(Path::new_(
|
bounds: vec!(("__S", vec!(Path::new_(
|
||||||
vec!("serde", "ser", "Serializer"), None,
|
vec!("serde", "ser", "Serializer"), None,
|
||||||
vec!(box Literal(Path::new_local("__E"))), true))),
|
vec!(box Literal(Path::new_local("__E"))), true))),
|
||||||
("__E", None, vec!()))
|
("__E", vec!()))
|
||||||
},
|
},
|
||||||
methods: vec!(
|
methods: vec!(
|
||||||
MethodDef {
|
MethodDef {
|
||||||
@ -209,10 +209,10 @@ pub fn expand_deriving_deserialize(cx: &mut ExtCtxt,
|
|||||||
additional_bounds: Vec::new(),
|
additional_bounds: Vec::new(),
|
||||||
generics: LifetimeBounds {
|
generics: LifetimeBounds {
|
||||||
lifetimes: Vec::new(),
|
lifetimes: Vec::new(),
|
||||||
bounds: vec!(("__D", None, vec!(Path::new_(
|
bounds: vec!(("__D", vec!(Path::new_(
|
||||||
vec!("serde", "de", "Deserializer"), None,
|
vec!("serde", "de", "Deserializer"), None,
|
||||||
vec!(box Literal(Path::new_local("__E"))), true))),
|
vec!(box Literal(Path::new_local("__E"))), true))),
|
||||||
("__E", None, vec!()))
|
("__E", vec!()))
|
||||||
},
|
},
|
||||||
methods: vec!(
|
methods: vec!(
|
||||||
MethodDef {
|
MethodDef {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user