Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
jpopesculian committed Jul 24, 2023
1 parent 181e41e commit 6d43085
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 3 additions & 3 deletions examples/server.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down Expand Up @@ -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
<script>
Expand Down

0 comments on commit 6d43085

Please sign in to comment.