1
0
Fork 0
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:
Thomas Bächler 2018-01-21 20:38:30 +01:00
parent 5237203899
commit 630de8c0a9
6 changed files with 13 additions and 13 deletions

View file

@ -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>> {