mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove Clone impl for WebGLMsg
This commit is contained in:
parent
1293692ef8
commit
e37856a855
3 changed files with 21 additions and 4 deletions
|
@ -26,10 +26,15 @@ macro_rules! unreachable_serializable {
|
|||
};
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct WebGLSender<T>(mpsc::Sender<T>);
|
||||
pub struct WebGLReceiver<T>(mpsc::Receiver<T>);
|
||||
|
||||
impl<T> Clone for WebGLSender<T> {
|
||||
fn clone(&self) -> Self {
|
||||
WebGLSender(self.0.clone())
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> WebGLSender<T> {
|
||||
#[inline]
|
||||
pub fn send(&self, data: T) -> Result<(), mpsc::SendError<T>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue