Skip to content

Commit 42f804e

Browse files
committed
1 parent c0ce897 commit 42f804e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#[macro_use] extern crate rocket;
22

3-
use rocket::fs::{FileServer, relative};
3+
use rocket::fs::FileServer;
44

55
use std::fs::File;
66
use std::io::Read;
@@ -80,5 +80,5 @@ fn hello() -> &'static str {
8080
fn rocket() -> _ {
8181
rocket::build()
8282
.mount("/", routes![hello, get_json, data])
83-
.mount("/", FileServer::from(relative!("src/public")))
83+
.mount("/", FileServer::from("src/public"))
8484
}

0 commit comments

Comments
 (0)