Fix warnings for new Rust