Replace a deprecated method call.
Make Travis use its own Rust support and cargo.