for x in xs.into_iter() -> for x in xs
Also `for x in option.into_iter()` -> `if let Some(x) = option`
This commit is contained in:
@@ -1231,7 +1231,7 @@ impl Context {
|
||||
_ => unreachable!()
|
||||
};
|
||||
this.sidebar = this.build_sidebar(&m);
|
||||
for item in m.items.into_iter() {
|
||||
for item in m.items {
|
||||
f(this,item);
|
||||
}
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user