refact: minor refactor

This commit is contained in:
meeg_leeto 2022-04-30 00:22:47 +01:00
parent 23c77c79f3
commit adb6853de5
1 changed files with 0 additions and 15 deletions

View File

@ -6,19 +6,6 @@ use warp::{http::Response, hyper::StatusCode, Filter};
#[macro_use]
/// Module containing custom defined macros.
mod macros {
macro_rules! clone {
(mut $y:ident) => {
let mut $y = $y.clone();
};
($y:ident) => {
let $y = $y.clone();
};
($y:ident, $($x:ident),+) => {
clone!($y);
clone!($($x),+);
};
}
/// Macros useful for debug contexts.
///
/// For example, `ifdbg!(expr)` replaces the $expr with () when the compile
@ -90,8 +77,6 @@ mod macros {
}
}
use macros::debug;
/// Affine to static configuration.
mod conf {
use serde::{Deserialize, Serialize};