Upgrade to rust

warning cleanup

r? @metajack