From bcd65caba7497557c50b61c8a1ec6da7673fed81 Mon Sep 17 00:00:00 2001 From: iliana etaoin Date: Thu, 6 Apr 2023 13:04:40 -0700 Subject: [PATCH] inline a variable --- src/app.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app.rs b/src/app.rs index d4bb347..aa54d78 100644 --- a/src/app.rs +++ b/src/app.rs @@ -145,10 +145,8 @@ struct Code { #[get("/code")] fn code() -> Code { - let zip = include_bytes!(concat!(env!("OUT_DIR"), "/source.zip")); - Code { - zip, + zip: include_bytes!(concat!(env!("OUT_DIR"), "/source.zip")), content_type: ContentType::ZIP, disposition: Header::new( "content-disposition",