~repos /rust-embed
git clone https://pyrossh.dev/repos/rust-embed.git
rust macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.
970837f2
—
AzureMarker 4 years ago
Fix rocket example index page
- examples/rocket.rs +1 -1
examples/rocket.rs
CHANGED
|
@@ -18,7 +18,7 @@ struct Asset;
|
|
|
18
18
|
fn index<'r>() -> response::Result<'r> {
|
|
19
19
|
Asset::get("index.html").map_or_else(
|
|
20
20
|
|| Err(Status::NotFound),
|
|
21
|
-
|d| response::Response::build().header(ContentType::HTML).sized_body(Cursor::new(d)).ok(),
|
|
21
|
+
|d| response::Response::build().header(ContentType::HTML).sized_body(Cursor::new(d.data)).ok(),
|
|
22
22
|
)
|
|
23
23
|
}
|
|
24
24
|
|