mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-03 01:39:28 +02:00
Use futures::sync::oneshot::Sender::send() instead of the deprecated complete()
This commit is contained in:
parent
a1a3a2e772
commit
644355269e
3 changed files with 6 additions and 6 deletions
|
@ -199,7 +199,7 @@ impl MercuryManager {
|
|||
if response.status_code >= 400 {
|
||||
warn!("error {} for uri {}", response.status_code, &response.uri);
|
||||
if let Some(cb) = pending.callback {
|
||||
cb.complete(Err(MercuryError));
|
||||
let _ = cb.send(Err(MercuryError));
|
||||
}
|
||||
} else {
|
||||
if cmd == 0xb5 {
|
||||
|
@ -223,7 +223,7 @@ impl MercuryManager {
|
|||
}
|
||||
})
|
||||
} else if let Some(cb) = pending.callback {
|
||||
cb.complete(Ok(response));
|
||||
let _ = cb.send(Ok(response));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue