Fix code for the newest Rust version.