Update for latest Rust and remove warnings