Allow large enum variant to avoid clippy warning

This commit is contained in:
notplants 2021-11-08 17:03:47 +01:00
parent 0d23307f86
commit 309ec94cdb
1 changed files with 1 additions and 0 deletions

View File

@ -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),