Remove use of deprecated vector get method.

`#![deny(warnings)]` is preventing compilation with the deprecated `Vec::get` method.