aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/file_loader.rs
diff options
context:
space:
mode:
authorAlexandru Cojocaru <xojoc@gmx.com>2015-01-29 22:11:03 +0100
committerMs2ger <ms2ger@gmail.com>2015-02-03 16:05:13 +0100
commit685fee02a0a5cc91bf92f0407f559ba164950a83 (patch)
tree4f38601714276d2a778b2c7fb65d1b4396ef7f25 /components/net/file_loader.rs
parent3da41c2b16d84a8eb4c616b50124afd1252d1123 (diff)
downloadservo-685fee02a0a5cc91bf92f0407f559ba164950a83.tar.gz
servo-685fee02a0a5cc91bf92f0407f559ba164950a83.zip
add `unwrap` to `send/recv` calls
Diffstat (limited to 'components/net/file_loader.rs')
-rw-r--r--components/net/file_loader.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/net/file_loader.rs b/components/net/file_loader.rs
index 6f388d3ea69..b2b701cb939 100644
--- a/components/net/file_loader.rs
+++ b/components/net/file_loader.rs
@@ -47,15 +47,15 @@ pub fn factory(load_data: LoadData, start_chan: Sender<TargetedLoadResponse>) {
match File::open_mode(&Path::new(file_path), io::Open, io::Read) {
Ok(ref mut reader) => {
let res = read_all(reader as &mut io::Stream, &progress_chan);
- progress_chan.send(Done(res));
+ progress_chan.send(Done(res)).unwrap();
}
Err(e) => {
- progress_chan.send(Done(Err(e.desc.to_string())));
+ progress_chan.send(Done(Err(e.desc.to_string()))).unwrap();
}
}
}
Err(_) => {
- progress_chan.send(Done(Err(url.to_string())));
+ progress_chan.send(Done(Err(url.to_string()))).unwrap();
}
}
});