Skip to content

stop emitting TryFrom<&str> and TryFrom<String> for non-string newtypes - #1079

Merged
ahl merged 1 commit into
mainfrom
numeric-tryfrom
Sep 19, 2026
Merged

ahl merged 1 commit into
mainfrom
numeric-tryfrom

Conversation

@ahl

@ahl ahl commented Sep 19, 2026

Copy link
Copy Markdown
Collaborator

An unconstrained newtype whose inner type has FromStr should only implement From and From<&str> if the inner type is a string.

An unconstrained newtype whose inner type has FromStr should only
implement From<String> and From<&str> if the inner type is a string.
@ahl
ahl merged commit 305fcd2 into main Sep 19, 2026
4 checks passed
@ahl
ahl deleted the numeric-tryfrom branch September 19, 2026 19:02
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.

1 participant