Skip to content
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

Add From<String> constructor for Category #165

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

jbethune
Copy link

This is an alternative to the Default::default() constructor. The Default::default() constructor produces an empty string for the name, which is probably not what the user wants in most cases.

This PR also adds a similar From<&str> constructor.

This is an alternative to the `Default::default()` constructor. The
`Default::default()` constructor produces an empty string for the
`name`, which is probably not what the user wants in most cases.

This PR also adds a similar `From<&str>` constructor.
@andy128k andy128k merged commit 8a6dc70 into rust-syndication:master Jul 29, 2024
12 checks passed
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