From 954909fecdeaea2f6d63bf82f6a7dc5d740f4f74 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Fri, 5 May 2023 01:56:49 +0900 Subject: [PATCH] Format code --- transcoder/src/audio.rs | 6 +----- transcoder/src/utils.rs | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/transcoder/src/audio.rs b/transcoder/src/audio.rs index a8dcc070..6052f8a1 100644 --- a/transcoder/src/audio.rs +++ b/transcoder/src/audio.rs @@ -1,8 +1,4 @@ -use crate::{ - error::ApiError, - paths, - state::Transcoder, -}; +use crate::{error::ApiError, paths, state::Transcoder}; use actix_files::NamedFile; use actix_web::{get, web, Result}; diff --git a/transcoder/src/utils.rs b/transcoder/src/utils.rs index a35a87db..5e27aed8 100644 --- a/transcoder/src/utils.rs +++ b/transcoder/src/utils.rs @@ -48,4 +48,3 @@ pub fn get_client_id(req: HttpRequest) -> Result { .ok_or(ApiError::BadRequest { error: String::from("Missing client id. Please specify the X-CLIENT-ID header to a guid constant for the lifetime of the player (but unique per instance)."), }) .map(|x| x.to_str().unwrap().to_string()) } -