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