Fix build break due to collections API cleanup

Not sure if this library change has made it into a Rust nightly yet, but it will soon