Fix test warnings with new Rust.