cargo fmt

This commit is contained in:
Oystein Kristoffer Tveit 2024-12-14 13:46:42 +01:00
parent b0b77b4981
commit c8ee55ec92
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 6 additions and 12 deletions

View File

@ -1,4 +1,4 @@
mod base;
mod rest_wrapper_v1;
pub use rest_wrapper_v1::{rest_api_routes, rest_api_docs};
pub use rest_wrapper_v1::{rest_api_docs, rest_api_routes};

View File

@ -41,10 +41,7 @@ pub fn rest_api_docs(mpv: Mpv) -> Router {
.routes(routes!(play_get, play_set))
.routes(routes!(volume_get, volume_set))
.routes(routes!(time_get, time_set))
.routes(routes!(
playlist_get,
playlist_remove_or_clear
))
.routes(routes!(playlist_get, playlist_remove_or_clear))
.routes(routes!(playlist_next))
.routes(routes!(playlist_previous))
.routes(routes!(playlist_goto))
@ -64,12 +61,10 @@ pub fn rest_api_docs(mpv: Mpv) -> Router {
// but they all had issues). Feel free to replace this with a better solution.
#[derive(OpenApi)]
#[openapi(
info(
#[openapi(info(
description = "The legacy Grzegorz Brzeczyszczykiewicz API, used to control a running mpv instance",
version = "1.0.0",
),
)]
))]
struct ApiDoc;
#[derive(serde::Serialize, utoipa::ToSchema)]
@ -136,7 +131,6 @@ struct LoadFileArgs {
path: String,
}
/// Add item to playlist
#[utoipa::path(
post,