From 130a32fa7259d348dc3a684b38e688da398c30bb Mon Sep 17 00:00:00 2001 From: ljedrz Date: Thu, 30 Aug 2018 11:42:16 +0200 Subject: Remove OneVector --- src/libsyntax/util/move_map.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/util') diff --git a/src/libsyntax/util/move_map.rs b/src/libsyntax/util/move_map.rs index eb2c5a2458c..51cae1b5d84 100644 --- a/src/libsyntax/util/move_map.rs +++ b/src/libsyntax/util/move_map.rs @@ -9,7 +9,7 @@ // except according to those terms. use std::ptr; -use OneVector; +use smallvec::{Array, SmallVec}; pub trait MoveMap: Sized { fn move_map(self, mut f: F) -> Self where F: FnMut(T) -> T { @@ -77,7 +77,7 @@ impl MoveMap for ::ptr::P<[T]> { } } -impl MoveMap for OneVector { +impl> MoveMap for SmallVec { fn move_flat_map(mut self, mut f: F) -> Self where F: FnMut(T) -> I, I: IntoIterator -- cgit 1.4.1-3-g733a5