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:
parent
d5d7e6565a
commit
d5f61b4332
34 changed files with 54 additions and 54 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue