Skip to content

Cleanup From/IntoAttributes traits #137

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

Merged

Conversation

Veetaha
Copy link
Contributor

@Veetaha Veetaha commented Sep 12, 2020

Blocked by:

What did you implement:

Renamed fn from_mut_attrs to fn from_attrs and removed the previous impl.

Now in order to convert items to/from attrs by consuming them users should use
generated TryFrom<Attributes>/Into<Attributes> impls.

How did you verify your change:

Ran existing tests

What (if anything) would need to be called out in the CHANGELOG for the next release:

  • from_attrs now takes Attributes by a &mut reference, use try_from() for convenient consuming of the attr map

@Veetaha Veetaha force-pushed the feat/cleanup-from-into-attrs-traits branch 3 times, most recently from 26147f4 to 4cf057e Compare September 12, 2020 11:33
Renamed `fn from_mut_attrs` to `fn from_attrs` and removed the previous impl.

Now in order to convert items to/from attrs by consuming them users should use
generated `TryFrom<Attributes>/Into<Attributes>` impls.
@Veetaha Veetaha force-pushed the feat/cleanup-from-into-attrs-traits branch from 4cf057e to 40b9d87 Compare September 13, 2020 17:28
@softprops softprops merged commit fbc946c into softprops:master Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants