From 309ec94cdb9b9670059625c51fdb28b142f7c987 Mon Sep 17 00:00:00 2001 From: notplants Date: Mon, 8 Nov 2021 17:03:47 +0100 Subject: [PATCH] Allow large enum variant to avoid clippy warning --- peach-web/src/utils.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/peach-web/src/utils.rs b/peach-web/src/utils.rs index 8055473..1c31c25 100644 --- a/peach-web/src/utils.rs +++ b/peach-web/src/utils.rs @@ -25,6 +25,7 @@ pub struct FlashContext { /// A helper enum which allows routes to either return a Template or a Redirect /// from: https://github.com/SergioBenitez/Rocket/issues/253#issuecomment-532356066 +#[allow(clippy::large_enum_variant)] #[derive(Debug, Responder)] pub enum TemplateOrRedirect { Template(Template),