softdevteam / grmtools

Rust grammar tool libraries and binaries
Other
494 stars 32 forks source link

update clippy #433

Closed ratmice closed 6 months ago

ratmice commented 6 months ago

clippy --all-targets --all-features wanted to change foo.get(0).unwrap() to foo.first().unwrap(). To make this more uniform across tests that call get() with non-zero indexes, I just switched them all to use foo[i] slice indexing.