Fix compiler warnings from new Rust