Skip to content

Commit edab5b2

Browse files
committed
Use the (stable) macro instead of the function
1 parent 65fa109 commit edab5b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ impl<A: Array> SmallVec<A> where A::Item: Clone {
810810
/// ```
811811
pub fn from_elem(elem: A::Item, n: usize) -> Self {
812812
if n > A::size() {
813-
::std::vec::from_elem(elem, n).into()
813+
vec![elem; n].into()
814814
} else {
815815
unsafe {
816816
let mut arr: A = ::std::mem::uninitialized();

0 commit comments

Comments
 (0)