Commit 0ed652d
committed
Resolve Rust 1.75's new get_first clippy lint
warning: accessing first element with `values.get(0)`
--> src/i18n.rs:20:31
|
20 | let email = match values.get(0) {
| ^^^^^^^^^^^^^ help: try: `values.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` on by default
warning: accessing first element with `values.get(0)`
--> src/i18n.rs:30:30
|
30 | let text = match values.get(0) {
| ^^^^^^^^^^^^^ help: try: `values.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first1 parent b352151 commit 0ed652d
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments