From 4119956810e8f6feb981430fc689f86b2053aec7 Mon Sep 17 00:00:00 2001 From: Sijmen Date: Sat, 23 Dec 2023 06:16:59 +0100 Subject: [PATCH] Run rustfmt --- src/main.rs | 2 +- src/routes/art.rs | 2 +- src/routes/browser.rs | 4 ++-- src/routes/index.rs | 2 +- src/routes/mod.rs | 8 ++++---- src/routes/player.rs | 2 +- src/routes/queue.rs | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7598eb7..355dfb5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ +mod crate_version; mod mpd; mod routes; -mod crate_version; async fn post_play(_req: tide::Request<()>) -> tide::Result { let mut mpd = mpd::get_instance().await; diff --git a/src/routes/art.rs b/src/routes/art.rs index 388cb22..f40ee78 100644 --- a/src/routes/art.rs +++ b/src/routes/art.rs @@ -1,6 +1,6 @@ -use serde::Deserialize; use crate::mpd; use percent_encoding::percent_decode_str; +use serde::Deserialize; #[derive(Deserialize, Default)] #[serde(default)] diff --git a/src/routes/browser.rs b/src/routes/browser.rs index 5341e65..a371abb 100644 --- a/src/routes/browser.rs +++ b/src/routes/browser.rs @@ -1,7 +1,7 @@ -use askama::Template; -use serde::Deserialize; use crate::mpd; +use askama::Template; use percent_encoding::percent_decode_str; +use serde::Deserialize; use std::path::Path; #[derive(Template)] diff --git a/src/routes/index.rs b/src/routes/index.rs index 3207567..d76ac98 100644 --- a/src/routes/index.rs +++ b/src/routes/index.rs @@ -1,6 +1,6 @@ +use crate::crate_version; use askama::Template; use serde::Deserialize; -use crate::crate_version; #[derive(Template)] #[template(path = "index.html")] diff --git a/src/routes/mod.rs b/src/routes/mod.rs index 535081b..5b02e2a 100644 --- a/src/routes/mod.rs +++ b/src/routes/mod.rs @@ -1,5 +1,5 @@ -pub mod index; -pub mod queue; -pub mod player; +pub mod art; pub mod browser; -pub mod art; \ No newline at end of file +pub mod index; +pub mod player; +pub mod queue; diff --git a/src/routes/player.rs b/src/routes/player.rs index 812887d..27a6291 100644 --- a/src/routes/player.rs +++ b/src/routes/player.rs @@ -1,5 +1,5 @@ -use askama::Template; use crate::mpd; +use askama::Template; use std::collections::HashMap; #[derive(Template)] diff --git a/src/routes/queue.rs b/src/routes/queue.rs index b0d224a..025808d 100644 --- a/src/routes/queue.rs +++ b/src/routes/queue.rs @@ -1,7 +1,7 @@ -use askama::Template; use crate::mpd; -use serde::Deserialize; +use askama::Template; use percent_encoding::percent_decode_str; +use serde::Deserialize; #[derive(Template)] #[template(path = "queue.html")]