mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-04 02:09:26 +02:00
Pass by reference
This commit is contained in:
parent
70eb3f9d72
commit
80f0d3c59b
11 changed files with 55 additions and 58 deletions
|
@ -67,7 +67,7 @@ impl CdnUrl {
|
|||
|
||||
pub async fn resolve_audio(&self, session: &Session) -> Result<Self, Error> {
|
||||
let file_id = self.file_id;
|
||||
let response = session.spclient().get_audio_storage(file_id).await?;
|
||||
let response = session.spclient().get_audio_storage(&file_id).await?;
|
||||
let msg = CdnUrlMessage::parse_from_bytes(&response)?;
|
||||
let urls = MaybeExpiringUrls::try_from(msg)?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue