-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow derivation of lenses for generic types. #1120
Conversation
Types, lifetimes and where clauses covered plus interior type parameter name clashes.
81975ab
to
0d2463f
Compare
CHANGELOG.md
Outdated
@@ -117,6 +117,7 @@ This means that druid no longer requires cairo on macOS and uses Core Graphics i | |||
- `LifeCycle::Size` event to inform widgets that their size changed. ([#953] by [@xStrom]) | |||
- `Button::dynamic` constructor. ([#963] by [@totsteps]) | |||
- `Spinner` widget to represent loading states. ([#1003] by [@futurepaul]) | |||
- Allow derivation of lenses for generic types ([#1120]) by [@rjwittams]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in the "Unreleased" section, not the "0.6.0" section
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't thought carefully about the possible edge cases, but this looks broadly good. There's one extraneous comment that is probably an accident, otherwise this looks good to me. Thanks!
druid-derive/src/lens.rs
Outdated
Ident::new(&candidate, Span::call_site()) | ||
}; | ||
|
||
//let ret_ty_par = G; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗑️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll get rid of that..
Thanks @rjwittams & @jneem! |
Types, lifetimes and where clauses covered plus interior type parameter name clashes.