remove unused imports
unnecessarily mutable variables
unused variable
auto merge of #7708 : bcully/rust/warnings, r=thestinger

Just getting my feet wet.