Fix warnings for latest Rust