From 0cadf1bfee2aee514c050949bfd11d0e59798e67 Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Sun, 5 Nov 2023 12:53:53 +0100 Subject: [PATCH] LEKTORD: Reorganize the files in lektord --- lektord/src/{app.rs => app/mod.rs} | 5 ++++- lektord/src/{ => app}/mpris.rs | 0 lektord/src/{ => app}/routes.rs | 0 lektord/src/main.rs | 2 -- 4 files changed, 4 insertions(+), 3 deletions(-) rename lektord/src/{app.rs => app/mod.rs} (99%) rename lektord/src/{ => app}/mpris.rs (100%) rename lektord/src/{ => app}/routes.rs (100%) diff --git a/lektord/src/app.rs b/lektord/src/app/mod.rs similarity index 99% rename from lektord/src/app.rs rename to lektord/src/app/mod.rs index a1bbe778..3204f3b3 100644 --- a/lektord/src/app.rs +++ b/lektord/src/app/mod.rs @@ -2,7 +2,10 @@ #![forbid(unsafe_code)] -use crate::{routes, LektorConfig}; +mod routes; +mod mpris; + +use crate::LektorConfig; use anyhow::{anyhow, Context, Result}; use axum::{ http::{Request, StatusCode}, diff --git a/lektord/src/mpris.rs b/lektord/src/app/mpris.rs similarity index 100% rename from lektord/src/mpris.rs rename to lektord/src/app/mpris.rs diff --git a/lektord/src/routes.rs b/lektord/src/app/routes.rs similarity index 100% rename from lektord/src/routes.rs rename to lektord/src/app/routes.rs diff --git a/lektord/src/main.rs b/lektord/src/main.rs index 9615519f..c3edf9d7 100644 --- a/lektord/src/main.rs +++ b/lektord/src/main.rs @@ -4,8 +4,6 @@ mod cmd; mod config; mod error; mod listen; -mod mpris; -mod routes; pub use self::{app::*, config::*, error::*, listen::*}; -- GitLab