mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-06 03:50:06 +02:00
Use futures::sync::mpsc::UnboundedSender::unbounded_send() instead of the deprecated send()
This commit is contained in:
parent
5237203899
commit
630de8c0a9
6 changed files with 13 additions and 13 deletions
|
@ -177,7 +177,7 @@ impl Session {
|
|||
}
|
||||
|
||||
pub fn send_packet(&self, cmd: u8, data: Vec<u8>) {
|
||||
self.0.tx_connection.send((cmd, data)).unwrap();
|
||||
self.0.tx_connection.unbounded_send((cmd, data)).unwrap();
|
||||
}
|
||||
|
||||
pub fn cache(&self) -> Option<&Arc<Cache>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue