aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/smallvec.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2015-01-31 14:36:05 +0100
committerMatt Brubeck <mbrubeck@limpet.net>2015-02-11 14:48:34 -0800
commitd5dd1d658e5d79701fb9d028479a0fcb26a033fa (patch)
tree0c243afe9d7d82695d16bd43d72e88600e4414ef /components/util/smallvec.rs
parentbc6882bdefc318402a46ede1494eb79339705c21 (diff)
downloadservo-d5dd1d658e5d79701fb9d028479a0fcb26a033fa.tar.gz
servo-d5dd1d658e5d79701fb9d028479a0fcb26a033fa.zip
Upgrade to rustc ba2f13ef0 2015-02-04
Diffstat (limited to 'components/util/smallvec.rs')
-rw-r--r--components/util/smallvec.rs4
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())
}