mirror of
https://github.com/LLukas22/Jellyswarrm.git
synced 2025-12-23 22:47:47 -05:00
clippy
This commit is contained in:
@@ -29,7 +29,7 @@ async fn proxy_request(client: &Client, url: url::Url) -> Result<Response, Statu
|
||||
// Create a stream that yields chunks as they are received from the upstream server
|
||||
let stream = resp
|
||||
.bytes_stream()
|
||||
.map(|result| result.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e)));
|
||||
.map(|result| result.map_err(std::io::Error::other));
|
||||
|
||||
let body = Body::from_stream(stream);
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ impl AppState {
|
||||
|
||||
pub async fn get_media_streaming_mode(&self) -> MediaStreamingMode {
|
||||
let config = self.config.read().await;
|
||||
config.media_streaming_mode.clone()
|
||||
config.media_streaming_mode
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user