This commit cleans up a few test warnings
auto merge of #13096 : sstewartgallus/rust/cleanup-test-warnings, r=huonw