| author | Kartikaya Gupta <kgupta@mozilla.com> |
| Sat, 14 Mar 2020 04:21:22 +0000 | |
| changeset 518896 | a0835622f3db257ec911be2b22d0c4a6974c5f5e |
| parent 518895 | 0447d570189d57aaeb848d60fd20b4df16e84573 |
| child 518897 | 415064e7f439b7733ff8b696a6efc55541cdc6e3 |
| push id | 37220 |
| push user | aiakab@mozilla.com |
| push date | Tue, 17 Mar 2020 05:13:41 +0000 |
| treeherder | mozilla-central@17adc9cb1db9 [default view] [failures only] |
| perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
| reviewers | kvark, jrmuizel |
| bugs | 1622256 |
| milestone | 76.0a1 |
| first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
| last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/gfx/wr/webrender_api/src/channel.rs +++ b/gfx/wr/webrender_api/src/channel.rs @@ -74,18 +74,17 @@ pub type PayloadSender = MsgSender<Paylo pub type PayloadReceiver = MsgReceiver<Payload>; pub struct MsgReceiver<T> { rx: mpsc::Receiver<T>, } impl<T> MsgReceiver<T> { pub fn recv(&self) -> Result<T, Error> { - use std::error::Error; - self.rx.recv().map_err(|e| io::Error::new(ErrorKind::Other, e.description())) + self.rx.recv().map_err(|e| io::Error::new(ErrorKind::Other, e.to_string())) } pub fn to_mpsc_receiver(self) -> mpsc::Receiver<T> { self.rx } } #[derive(Clone)]