mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 00:53:31 +00:00
fix comments in test for split_once
split_once was stabilized in 1.52
This commit is contained in:
parent
b029a86c6b
commit
a9511482d6
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ fn main() {
|
||||||
|
|
||||||
fn _msrv_1_51() {
|
fn _msrv_1_51() {
|
||||||
#![clippy::msrv = "1.51"]
|
#![clippy::msrv = "1.51"]
|
||||||
// `str::split_once` was stabilized in 1.16. Do not lint this
|
// `str::split_once` was stabilized in 1.52. Do not lint this
|
||||||
let _ = "key=value".splitn(2, '=').nth(1).unwrap();
|
let _ = "key=value".splitn(2, '=').nth(1).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ fn main() {
|
||||||
|
|
||||||
fn _msrv_1_51() {
|
fn _msrv_1_51() {
|
||||||
#![clippy::msrv = "1.51"]
|
#![clippy::msrv = "1.51"]
|
||||||
// `str::split_once` was stabilized in 1.16. Do not lint this
|
// `str::split_once` was stabilized in 1.52. Do not lint this
|
||||||
let _ = "key=value".splitn(2, '=').nth(1).unwrap();
|
let _ = "key=value".splitn(2, '=').nth(1).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue