mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
modify argument of ConnectionTmpl::send_raw()
This commit is contained in:
@@ -456,8 +456,8 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn send_raw(&mut self, data: Vec<u8>) -> ResultType<()> {
|
||||
self.inner.send(bytes::Bytes::from(data)).await?;
|
||||
pub async fn send_raw(&mut self, data: Bytes) -> ResultType<()> {
|
||||
self.inner.send(data).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user