aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/net/image_cache_task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/net/image_cache_task.rs')
-rw-r--r--src/components/net/image_cache_task.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components/net/image_cache_task.rs b/src/components/net/image_cache_task.rs
index fba676cbced..1212fa972c2 100644
--- a/src/components/net/image_cache_task.rs
+++ b/src/components/net/image_cache_task.rs
@@ -14,6 +14,7 @@ use std::util::replace;
use std::result;
use extra::arc::{Arc,MutexArc};
use extra::url::Url;
+use extra::serialize::{Encoder, Encodable};
pub enum Msg {
/// Tell the cache that we may need a particular image soon. Must be posted
@@ -80,6 +81,11 @@ pub struct ImageCacheTask {
chan: SharedChan<Msg>,
}
+impl<S: Encoder> Encodable<S> for ImageCacheTask {
+ fn encode(&self, _: &mut S) {
+ }
+}
+
type DecoderFactory = fn() -> proc(&[u8]) -> Option<Image>;
pub fn ImageCacheTask(resource_task: ResourceTask) -> ImageCacheTask {