-
Notifications
You must be signed in to change notification settings - Fork 146
Commit 18041a2
committed
'...' range patterns are deprecated, fix it
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 details1 parent c6d2e23 commit 18041a2
File tree
3 files changed
+4
-4
lines changed- src
3 files changed
+4
-4
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 | - | ||
77 | + | ||
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
| |||
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
87 | - | ||
87 | + | ||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 | - | ||
55 | + | ||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 | - | ||
50 | + | ||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
|
0 commit comments