diff options
author | Bogdan Cuza <bogdan.cuza@hotmail.com> | 2015-07-21 16:35:50 +0300 |
---|---|---|
committer | Bogdan Cuza <bogdan.cuza@hotmail.com> | 2015-07-22 16:45:43 +0300 |
commit | 681b11c08b6a3a22d0be5c51aaebf40727e3dfeb (patch) | |
tree | 42058812a17779fc8628e22a77eee1ac992fb020 /components/script/dom | |
parent | e10a524c8145d5bc903eaa0aa6161d20593c463a (diff) | |
download | servo-681b11c08b6a3a22d0be5c51aaebf40727e3dfeb.tar.gz servo-681b11c08b6a3a22d0be5c51aaebf40727e3dfeb.zip |
Fix #6680
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/bindings/trace.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs index f7f8c527d9a..41bdc27a13e 100644 --- a/components/script/dom/bindings/trace.rs +++ b/components/script/dom/bindings/trace.rs @@ -57,7 +57,7 @@ use net_traits::image_cache_task::{ImageCacheChan, ImageCacheTask}; use net_traits::storage_task::StorageType; use script_traits::ScriptControlChan; use script_traits::UntrustedNodeAddress; -use smallvec::SmallVec1; +use smallvec::SmallVec; use msg::compositor_msg::ScriptListener; use msg::constellation_msg::ConstellationChan; use net_traits::image::base::Image; @@ -219,7 +219,7 @@ impl<T: JSTraceable> JSTraceable for Vec<T> { // XXXManishearth Check if the following three are optimized to no-ops // if e.trace() is a no-op (e.g it is an no_jsmanaged_fields type) -impl<T: JSTraceable + 'static> JSTraceable for SmallVec1<T> { +impl<T: JSTraceable + 'static> JSTraceable for SmallVec<[T; 1]> { #[inline] fn trace(&self, trc: *mut JSTracer) { for e in self.iter() { |