inline a variable
This commit is contained in:
parent
5cb522d78e
commit
bcd65caba7
|
@ -145,10 +145,8 @@ struct Code {
|
||||||
|
|
||||||
#[get("/code")]
|
#[get("/code")]
|
||||||
fn code() -> Code {
|
fn code() -> Code {
|
||||||
let zip = include_bytes!(concat!(env!("OUT_DIR"), "/source.zip"));
|
|
||||||
|
|
||||||
Code {
|
Code {
|
||||||
zip,
|
zip: include_bytes!(concat!(env!("OUT_DIR"), "/source.zip")),
|
||||||
content_type: ContentType::ZIP,
|
content_type: ContentType::ZIP,
|
||||||
disposition: Header::new(
|
disposition: Header::new(
|
||||||
"content-disposition",
|
"content-disposition",
|
||||||
|
|
Loading…
Reference in New Issue