Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben2424 committed Jul 21, 2023
1 parent edbf0f4 commit 1c8f57f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/single_threaded.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
#![deny(warnings)]
/// This example shows how to use hyper with a single-threaded runtime.
/// This example exists also to test if the code compiles when `Body` is not `Send`.
///
///
/// This Example includes HTTP/1 and HTTP/2 server and client.
///
///
/// In HTTP/1 it is possible to use a `!Send` `Body`type.
/// In HTTP/2 it is possible to use a `!Send` `Body` and `IO` type.
///
///
/// The `Body` and `IOTypeNotSend` structs in this example are `!Send`
///
///
/// For HTTP/2 this only works if the `Executor` trait is implemented without the `Send` bound.

use http_body_util::BodyExt;
use hyper::server::conn::http2;
use std::cell::Cell;
Expand Down

0 comments on commit 1c8f57f

Please sign in to comment.