mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-24 03:53:20 +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);
|
|
}
|