diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-03-21 18:44:39 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-03-21 18:44:39 +0100 |
commit | ba87666cdbf4addf9340aad0dd0cf9574b79091c (patch) | |
tree | 6a7b6b4d0a28f0302029f0c82ab3c63290287d6e /components/net/image_cache_task.rs | |
parent | 29a36adbe7d87fb38ba9bef3a718c6c823fb5977 (diff) | |
download | servo-ba87666cdbf4addf9340aad0dd0cf9574b79091c.tar.gz servo-ba87666cdbf4addf9340aad0dd0cf9574b79091c.zip |
Update some code that's feature-gated under core.
Diffstat (limited to 'components/net/image_cache_task.rs')
-rw-r--r-- | components/net/image_cache_task.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/net/image_cache_task.rs b/components/net/image_cache_task.rs index 16d390bf6d1..ecb6b4ae396 100644 --- a/components/net/image_cache_task.rs +++ b/components/net/image_cache_task.rs @@ -316,7 +316,7 @@ impl ImageCache { debug!("image_cache_task: started image decode for {}", url.serialize()); let image = profile(time::TimeProfilerCategory::ImageDecoding, None, time_profiler_chan, || { - load_from_memory(data.as_slice()) + load_from_memory(&data) }); let image = image.map(|image| Arc::new(box image)); @@ -456,7 +456,7 @@ fn load_image_data(url: Url, resource_task: ResourceTask) -> Result<Vec<u8>, ()> loop { match progress_port.recv().unwrap() { Payload(data) => { - image_data.push_all(data.as_slice()); + image_data.push_all(&data); } Done(Ok(..)) => { return Ok(image_data); |