Avoid using relative! macro

This doesn't interact well with Nix.
This commit is contained in:
Konrad Borowski 2021-10-19 16:29:50 +02:00
parent d731a44bda
commit f328a4821b

View File

@ -30,7 +30,7 @@ use crate::routes::{
};
use diesel::prelude::*;
use rocket::fairing::AdHoc;
use rocket::fs::{relative, FileServer};
use rocket::fs::FileServer;
use rocket_dyn_templates::tera::{self, Value};
use rocket_dyn_templates::Template;
use rocket_sync_db_pools::database;
@ -80,5 +80,5 @@ async fn rocket() -> _ {
raw_paste,
],
)
.mount("/static", FileServer::from(relative!("static")))
.mount("/static", FileServer::from("static"))
}