mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-06 03:50:06 +02:00
Enable deprecation warnings and address
This commit is contained in:
parent
8f9bec21d7
commit
98a97588d3
6 changed files with 10 additions and 15 deletions
|
@ -7,7 +7,7 @@ use std::{
|
|||
|
||||
use bytes::Bytes;
|
||||
use futures_util::StreamExt;
|
||||
use hyper::StatusCode;
|
||||
use hyper::{body::HttpBody, StatusCode};
|
||||
use tempfile::NamedTempFile;
|
||||
use tokio::sync::{mpsc, oneshot};
|
||||
|
||||
|
@ -97,7 +97,7 @@ async fn receive_data(
|
|||
}
|
||||
|
||||
let body = response.into_body();
|
||||
let data = match hyper::body::to_bytes(body).await {
|
||||
let data = match body.collect().await.map(|b| b.to_bytes()) {
|
||||
Ok(bytes) => bytes,
|
||||
Err(e) => break Err(e.into()),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue