Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ sofie = { version = "0.1.0", features = ["vetis"] }
Here's how simple it is to create a web application with Sofie:

```rust
use sofie::Sofie;
use sofie::App;
use http_body_util::{Full};
use bytes::Bytes;
use hyper::Response;
Expand All @@ -35,9 +35,9 @@ use hyper::Response;
async fn main() -> Result<(), Box<dyn std::error::Error>> {
std_logger::Config::logfmt().init();

let mut sophia = Sophia::new(config);
let mut app = App::new();

sophia.serve(|_| async move {
app.serve(|_| async move {
Ok(Response::new(Full::new(Bytes::from("Hello World"))))
}).await?;

Expand Down