Fix warnings
auto merge of #5653 : brson/rust/warnings, r=brson