diff --git a/.github/workflows/check_guides.sh b/.github/workflows/check_guides.sh index dcfabd1..2512554 100755 --- a/.github/workflows/check_guides.sh +++ b/.github/workflows/check_guides.sh @@ -19,9 +19,9 @@ EOF fi if [ $value = stable ]; then cat >> "$value/Cargo.toml" <<-EOF - hyper = { version = "1.0.0-rc.1", features = ["full"] } + hyper = { version = "1.0.0-rc.2", features = ["full"] } tokio = { version = "1", features = ["full"] } - http-body-util = "0.1.0-rc.1" + http-body-util = "0.1.0-rc.2" EOF cargo build --manifest-path "$value/Cargo.toml" fi diff --git a/_config.yml b/_config.yml index b1fb4a2..d0d83e2 100644 --- a/_config.yml +++ b/_config.yml @@ -45,9 +45,9 @@ relative_links: plugins: - jekyll-redirect-from -docs_url: https://docs.rs/hyper/1.0.0-rc.1 +docs_url: https://docs.rs/hyper/1.0.0-rc.2 examples_url: https://github.com/hyperium/hyper/tree/master/examples -http_body_util_url: https://docs.rs/http-body-util/0.1.0-rc.1 +http_body_util_url: https://docs.rs/http-body-util/0.1.0-rc.2 hyper_tls_url: https://docs.rs/hyper-tls/* futures_url: https://docs.rs/futures/0.3.* diff --git a/_stable/client/basic.md b/_stable/client/basic.md index c83ca51..1b90655 100644 --- a/_stable/client/basic.md +++ b/_stable/client/basic.md @@ -11,9 +11,9 @@ Let's tell Cargo about our dependencies by having this in the Cargo.toml. ```toml [dependencies] -hyper = { version = "1.0.0-rc.1", features = ["full"] } +hyper = { version = "1.0.0-rc.2", features = ["full"] } tokio = { version = "1", features = ["full"] } -http-body-util = "0.1.0-rc.1" +http-body-util = "0.1.0-rc.2" ``` Now, we need to import pieces to use from our dependencies: diff --git a/_stable/index.md b/_stable/index.md index 72ab722..ebed969 100644 --- a/_stable/index.md +++ b/_stable/index.md @@ -13,7 +13,7 @@ You can start using it by first adding it to your `Cargo.toml`: ```toml [dependencies] -hyper = { version = "1.0.0-rc.1", features = ["full"] } +hyper = { version = "1.0.0-rc.2", features = ["full"] } ``` - If building a web server, continue with the [Server guide][]. diff --git a/_stable/server/echo.md b/_stable/server/echo.md index b7e6c20..4f9068a 100644 --- a/_stable/server/echo.md +++ b/_stable/server/echo.md @@ -148,7 +148,7 @@ of our request body to uppercase, and returning the stream in our `Response`: (&Method::POST, "/echo/uppercase") => { // Map this body's frame to a different type let frame_stream = req.into_body().map_frame(|frame| { - let frame = if let Some(data) = frame.into_data() { + let frame = if let Ok(data) = frame.into_data() { // Convert every byte in every Data frame to uppercase data.iter() .map(|byte| byte.to_ascii_uppercase()) diff --git a/_stable/server/hello-world.md b/_stable/server/hello-world.md index a1c3436..7133431 100644 --- a/_stable/server/hello-world.md +++ b/_stable/server/hello-world.md @@ -9,9 +9,9 @@ First we need to declare our dependencies, let's add the following to our `Cargo ```toml [dependencies] -hyper = { version = "1.0.0-rc.1", features = ["full"] } +hyper = { version = "1.0.0-rc.2", features = ["full"] } tokio = { version = "1", features = ["full"] } -http-body-util = "0.1.0-rc.1" +http-body-util = "0.1.0-rc.2" ``` Next, we need to add some imports in our `main.rs` file: