mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 21:48:02 +00:00
Merge pull request #303 from antrik/rustup
Update for latest libsyntax changes
This commit is contained in:
@@ -12,11 +12,11 @@ use syntax::visit;
|
||||
// allowed here".
|
||||
pub fn without_defaults(generics: &ast::Generics) -> ast::Generics {
|
||||
ast::Generics {
|
||||
ty_params: generics.ty_params.map(|ty_param| {
|
||||
ty_params: generics.ty_params.iter().map(|ty_param| {
|
||||
ast::TyParam {
|
||||
default: None,
|
||||
.. ty_param.clone()
|
||||
}}),
|
||||
}}).collect(),
|
||||
.. generics.clone()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user