diff options
author | metamuffin <metamuffin@disroot.org> | 2023-01-26 09:10:23 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-01-26 09:10:23 +0100 |
commit | 42e1c3003c671e9a08d180b84bfa8e00ba858660 (patch) | |
tree | f14d0addd16ce6cf8c6a1c1292b9b5db8ddd0b09 /server/src/routes/stream.rs | |
parent | d48c939eb65b1b40d54644ee35e66d079789e54f (diff) | |
download | jellything-42e1c3003c671e9a08d180b84bfa8e00ba858660.tar jellything-42e1c3003c671e9a08d180b84bfa8e00ba858660.tar.bz2 jellything-42e1c3003c671e9a08d180b84bfa8e00ba858660.tar.zst |
cleanup
Diffstat (limited to 'server/src/routes/stream.rs')
-rw-r--r-- | server/src/routes/stream.rs | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/server/src/routes/stream.rs b/server/src/routes/stream.rs index 9d90eea..eb7bc13 100644 --- a/server/src/routes/stream.rs +++ b/server/src/routes/stream.rs @@ -5,21 +5,20 @@ */ use super::ui::error::MyError; use crate::library::Library; -use anyhow::Result; -use anyhow::{anyhow, Context}; +use anyhow::{anyhow, Context, Result}; use jellyremuxer::RemuxerContext; -use log::warn; -use log::{debug, info}; -use rocket::http::{Header, Status}; -use rocket::request::{self, FromRequest}; -use rocket::response; -use rocket::response::Responder; -use rocket::Request; -use rocket::Response; -use rocket::{get, http::ContentType, State}; -use std::ops::Deref; -use std::ops::Range; -use std::path::PathBuf; +use log::{debug, info, warn}; +use rocket::{ + get, + http::{ContentType, Header, Status}, + request::{self, FromRequest}, + response::{self, Responder}, + Request, Response, State, +}; +use std::{ + ops::{Deref, Range}, + path::PathBuf, +}; use tokio::io::{duplex, DuplexStream}; use tokio_util::io::SyncIoBridge; |