Updated to latest Rust syntax.