diff options
author | Josh Matthews <josh@joshmatthews.net> | 2020-02-19 17:07:29 -0500 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2020-02-20 11:15:13 -0500 |
commit | 3fd3c23e17f0bae5d46069ff2a8f61cf4bd4aad7 (patch) | |
tree | 7b3d43e2d5cb3d88a57b39cc07c550847cf69e83 /components/profile_traits/ipc.rs | |
parent | 107a29121c8a0e21d03645dd07121b59b595ac93 (diff) | |
download | servo-3fd3c23e17f0bae5d46069ff2a8f61cf4bd4aad7.tar.gz servo-3fd3c23e17f0bae5d46069ff2a8f61cf4bd4aad7.zip |
Update ipc-channel and crossbeam-channel.
Diffstat (limited to 'components/profile_traits/ipc.rs')
-rw-r--r-- | components/profile_traits/ipc.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/profile_traits/ipc.rs b/components/profile_traits/ipc.rs index e1dedb4b17f..5da5ef3e592 100644 --- a/components/profile_traits/ipc.rs +++ b/components/profile_traits/ipc.rs @@ -21,7 +21,7 @@ impl<T> IpcReceiver<T> where T: for<'de> Deserialize<'de> + Serialize, { - pub fn recv(&self) -> Result<T, bincode::Error> { + pub fn recv(&self) -> Result<T, ipc::IpcError> { time::profile( ProfilerCategory::IpcReceiver, None, @@ -30,7 +30,7 @@ where ) } - pub fn try_recv(&self) -> Result<T, bincode::Error> { + pub fn try_recv(&self) -> Result<T, ipc::TryRecvError> { self.ipc_receiver.try_recv() } @@ -59,7 +59,7 @@ pub struct IpcBytesReceiver { } impl IpcBytesReceiver { - pub fn recv(&self) -> Result<Vec<u8>, bincode::Error> { + pub fn recv(&self) -> Result<Vec<u8>, ipc::IpcError> { time::profile( ProfilerCategory::IpcBytesReceiver, None, |