mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 17:15:05 +00:00
9 lines
152 B
Rust
9 lines
152 B
Rust
// run-rustfix
|
|
|
|
#![warn(clippy::bytes_nth)]
|
|
|
|
fn main() {
|
|
let _ = "Hello".as_bytes().get(3);
|
|
|
|
let _ = String::from("Hello").as_bytes().get(3);
|
|
}
|