Fix warnings with new Rust