Auto merge of #8669 - kyoto7250:fix_comments_in_test_split_once, r=xFrednet
fix comments in test for split_once This PR fixed comments in test. `split_once` was stabilized in 1.52, so I think the comments maybe be wrong. ref: https://doc.rust-lang.org/std/string/struct.String.html#method.split_once thank you in advance. changelog: none
This commit is contained in:
commit
cfd52aa0ff
@ -46,7 +46,7 @@ fn main() {
|
||||
|
||||
fn _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();
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ fn _f(s: &str) -> Option<&str> {
|
||||
|
||||
fn _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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user