Eat dogfood

This commit is contained in:
Cameron Steffen 2021-02-05 14:55:09 -06:00
parent ac5e9c8d26
commit 40ce05654b
3 changed files with 3 additions and 3 deletions

View file

@ -160,7 +160,7 @@ impl<'tcx> LateLintPass<'tcx> for MacroUseImports {
let found_idx = self.mac_refs.iter().position(|mac| import.ends_with(&mac.name));
if let Some(idx) = found_idx {
let _ = self.mac_refs.remove(idx);
self.mac_refs.remove(idx);
let seg = import.split("::").collect::<Vec<_>>();
match seg.as_slice() {