Clean up a handful of build warnings.
auto merge of #6937 : msullivan/rust/no-warnings, r=bstrie