Fix warnings from new Rust