Skip to content

Allow derivation of lenses for generic types.#1120

Merged
cmyr merged 3 commits intolinebender:masterfrom
rjwittams:derive-data-gen
Aug 11, 2020
Merged

Allow derivation of lenses for generic types.#1120
cmyr merged 3 commits intolinebender:masterfrom
rjwittams:derive-data-gen

Conversation

@rjwittams
Copy link
Collaborator

Types, lifetimes and where clauses covered plus interior type parameter name clashes.

Types, lifetimes and where clauses covered plus interior type parameter name clashes.
CHANGELOG.md Outdated
- `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])
Copy link
Member

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

Copy link
Member

@cmyr cmyr left a 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!

Ident::new(&candidate, Span::call_site())
};

//let ret_ty_par = G;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗑️

Copy link
Collaborator Author

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..

@cmyr
Copy link
Member

cmyr commented Aug 11, 2020

Thanks @rjwittams & @jneem!

@cmyr cmyr merged commit 90d81c9 into linebender:master Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-needs-review waits for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants