Fix warnings with newer Rust