mirror of
https://github.com/xazukx/ts-rs.git
synced 2026-08-23 12:58:33 +00:00
Ignore serde(crate = ...) (#447)
This commit is contained in:
@@ -289,5 +289,10 @@ impl_parse! {
|
||||
"content" => out.0.content = Some(parse_assign_str(input)?),
|
||||
"untagged" => out.0.untagged = true,
|
||||
"bound" => out.0.bound = Some(parse_bound(input)?),
|
||||
|
||||
// parse #[serde(crate = "...")] to not emit a warning
|
||||
"crate" => {
|
||||
parse_assign_str(input)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,5 +180,10 @@ impl_parse! {
|
||||
parse_assign_str(input)?;
|
||||
}
|
||||
},
|
||||
|
||||
// parse #[serde(crate = "...")] to not emit a warning
|
||||
"crate" => {
|
||||
parse_assign_str(input)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user