Skip to content

'...' range patterns are deprecated, fix it #10

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
merged 1 commit into from
Sep 6, 2019

Conversation

yue2388253
Copy link
Contributor

Compile the previous program results in serveral following warnings:

warning: ... range patterns are deprecated
--> src/n0008_string_to_integer_atoi.rs:77:24
|
77 | '0'...'9' => {
| ^^^ help: use ..= for an inclusive range
|
= note: #[warn(ellipsis_inclusive_range_patterns)] on by default

See this link for more details

Compile the previous program results in serveral following warnings:
> warning: `...` range patterns are deprecated
>   --> src/n0008_string_to_integer_atoi.rs:77:24
>    |
> 77 |                     '0'...'9' => {
>    |                        ^^^ help: use `..=` for an inclusive range
>    |
>    = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default

See this link (rust-lang/book#2072) for more details
@aylei aylei merged commit da3cad9 into aylei:master Sep 6, 2019
@aylei
Copy link
Owner

aylei commented Sep 6, 2019

Thanks @yue2388253 !

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