From adb6853de5994e2960dd526efb1b15fd6acb2add Mon Sep 17 00:00:00 2001 From: meeg_leeto Date: Sat, 30 Apr 2022 00:22:47 +0100 Subject: [PATCH] refact: minor refactor --- src/main.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/main.rs b/src/main.rs index dd0c388..735314a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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};