softdevteam / grmtools

Rust grammar tool libraries and binaries
Other
517 stars 31 forks source link

update clippy #433

Closed ratmice closed 11 months ago

ratmice commented 11 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.