diff --git a/Cargo.toml b/Cargo.toml index c8ee816..b053905 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,4 +28,4 @@ futures = "0.3.5" tokio = { version = "1", features = ["macros", "rt-multi-thread"] } futures-retry = "0.6" pin-utils = "0.1" -rocket = "0.5.0-rc.1" +rocket = "0.5.0-rc.3" diff --git a/examples/server.rs b/examples/server.rs index 278be94..2688a60 100644 --- a/examples/server.rs +++ b/examples/server.rs @@ -1,7 +1,7 @@ use rocket::http::Status; use rocket::request::Outcome; use rocket::request::Request; -use rocket::response::content::Html; +use rocket::response::content::RawHtml; use rocket::response::stream::{Event, EventStream}; use rocket::tokio::time::{self, Duration}; use rocket::{get, launch, routes}; @@ -46,8 +46,8 @@ fn events(id: LastEventId) -> EventStream![] { } #[get("/")] -fn index() -> Html<&'static str> { - Html( +fn index() -> RawHtml<&'static str> { + RawHtml( r#" Open Console