mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
add unwrap
to send/recv
calls
This commit is contained in:
parent
3da41c2b16
commit
685fee02a0
30 changed files with 100 additions and 100 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue