Closed ratmice closed 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.
clippy --all-targets --all-features
foo.get(0).unwrap()
foo.first().unwrap()
get()
foo[i]
clippy --all-targets --all-features
wanted to changefoo.get(0).unwrap()
tofoo.first().unwrap()
. To make this more uniform across tests that callget()
with non-zero indexes, I just switched them all to usefoo[i]
slice indexing.