commit | bc7d7d9877c305808eb6f27fb3da152ef5fc9fb6 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sat Jun 03 20:54:05 2017 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Sat Jun 03 20:56:57 2017 -0700 |
tree | b1cf75a7f33cb9209073acaedc8b0b4dc793f67d | |
parent | b21bb0cecbb30e07d7c017706f12544149c101df [diff] [blame] |
Fix type inference snafu with synom map
diff --git a/src/generics.rs b/src/generics.rs index 60a94a6..7cb6c82 100644 --- a/src/generics.rs +++ b/src/generics.rs
@@ -212,7 +212,7 @@ | epsilon!() => { |_| (Delimited::new(), None, None, None) } ), - |(lifetimes, ty_params, lt, gt): (_, Option<_>, _, _)| Generics { + |(lifetimes, ty_params, lt, gt)| Generics { lifetimes: lifetimes, ty_params: ty_params.unwrap_or_default(), where_clause: WhereClause::default(),