1
Fork 0

for x in xs.iter_mut() -> for x in &mut xs

Also `for x in option.iter_mut()` -> `if let Some(ref mut x) = option`
This commit is contained in:
Jorge Aparicio 2015-01-31 20:02:00 -05:00
parent d5d7e6565a
commit d5f61b4332
34 changed files with 54 additions and 54 deletions

View file

@ -1270,7 +1270,7 @@ impl Context {
v.push(NameDoc(myname, Some(shorter_line(item.doc_value()))));
}
for (_, items) in map.iter_mut() {
for (_, items) in &mut map {
items.sort();
}
return map;