-
Notifications
You must be signed in to change notification settings - Fork 275
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
Replace usage of FromStr::from_str
with str::parse
across the project
#4749
Comments
FromStr::from_str
with str::parse
across the project
FromStr::from_str
with str::parse
across the projectFromStr::from_str
with str::parse
across the project
Implemented |
@Stukalov-A-M |
Could u pls. send the ref where it's said about idiomaticity ? I found only info that parse::() we're using were cast may bring to an error and Into:: where we sure that str will be casted into the the without errors |
Here are some discussions on it:
If the parsing is infallible, it's possible to specify the empty |
Thanks a lot! I'll research the discussions. |
It's best to use the inherent
str::parse<T: FromStr>
method across the project instead ofFromStr::from_str
since it doesn't require bringingFromStr
into the scope.The text was updated successfully, but these errors were encountered: