add #[inline] to vec::iter
This commit is contained in:
parent
bceea8339a
commit
e65c39c100
1 changed files with 1 additions and 0 deletions
|
@ -968,6 +968,7 @@ Iterates over vector `v` and, for each element, calls function `f` with the
|
|||
element's value.
|
||||
|
||||
*/
|
||||
#[inline]
|
||||
fn iter<T>(v: [const T], f: fn(T)) {
|
||||
iteri(v) { |_i, v| f(v) }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue