fix Rust compilation error.