diff options
Diffstat (limited to 'components/util/smallvec.rs')
-rw-r--r-- | components/util/smallvec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/util/smallvec.rs b/components/util/smallvec.rs index efd1bfc7f35..1707c0a6eba 100644 --- a/components/util/smallvec.rs +++ b/components/util/smallvec.rs @@ -325,7 +325,7 @@ impl<'a, T: 'a> Iterator for SmallVecMoveIterator<'a,T> { impl<'a, T: 'a> Drop for SmallVecMoveIterator<'a,T> { fn drop(&mut self) { // Destroy the remaining elements. - for _ in *self {} + for _ in self.by_ref() {} match self.allocation { None => {} @@ -443,7 +443,7 @@ macro_rules! def_small_vector( } } - impl<T: fmt::Show> fmt::Show for $name<T> { + impl<T: fmt::Debug> fmt::Debug for $name<T> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{:?}", self.as_slice()) } |