From 6d432a8eca4287d7dcd93ed23271a377a0bde643 Mon Sep 17 00:00:00 2001 From: Amit Upadhyay Date: Thu, 19 Dec 2024 18:05:13 +0530 Subject: [PATCH] minor --- v0.5/fastn-router/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/v0.5/fastn-router/src/lib.rs b/v0.5/fastn-router/src/lib.rs index d9c487f67..98f5adc01 100644 --- a/v0.5/fastn-router/src/lib.rs +++ b/v0.5/fastn-router/src/lib.rs @@ -10,12 +10,14 @@ mod route; #[derive(serde::Deserialize, serde::Serialize, Debug, Clone)] pub struct Router {} +#[derive(Debug, Copy, PartialEq, Clone)] pub enum Method { Get, Post, } #[allow(dead_code)] +#[derive(Debug)] // the router will depend on fastn-section. pub enum Route { NotFound, @@ -27,6 +29,7 @@ pub enum Route { Static(String), } +#[derive(Debug)] pub struct Document { // this is private yet #[expect(unused)]