Skip to content

Commit 08c4c66

Browse files
authored
feat: update guides to rc 2 (#79)
1 parent 96a701e commit 08c4c66

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.github/workflows/check_guides.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ EOF
1919
fi
2020
if [ $value = stable ]; then
2121
cat >> "$value/Cargo.toml" <<-EOF
22-
hyper = { version = "1.0.0-rc.1", features = ["full"] }
22+
hyper = { version = "1.0.0-rc.2", features = ["full"] }
2323
tokio = { version = "1", features = ["full"] }
24-
http-body-util = "0.1.0-rc.1"
24+
http-body-util = "0.1.0-rc.2"
2525
EOF
2626
cargo build --manifest-path "$value/Cargo.toml"
2727
fi

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ relative_links:
4545
plugins:
4646
- jekyll-redirect-from
4747

48-
docs_url: https://docs.rs/hyper/1.0.0-rc.1
48+
docs_url: https://docs.rs/hyper/1.0.0-rc.2
4949
examples_url: https://github.com/hyperium/hyper/tree/master/examples
50-
http_body_util_url: https://docs.rs/http-body-util/0.1.0-rc.1
50+
http_body_util_url: https://docs.rs/http-body-util/0.1.0-rc.2
5151
hyper_tls_url: https://docs.rs/hyper-tls/*
5252

5353
futures_url: https://docs.rs/futures/0.3.*

_stable/client/basic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ Let's tell Cargo about our dependencies by having this in the Cargo.toml.
1111

1212
```toml
1313
[dependencies]
14-
hyper = { version = "1.0.0-rc.1", features = ["full"] }
14+
hyper = { version = "1.0.0-rc.2", features = ["full"] }
1515
tokio = { version = "1", features = ["full"] }
16-
http-body-util = "0.1.0-rc.1"
16+
http-body-util = "0.1.0-rc.2"
1717
```
1818

1919
Now, we need to import pieces to use from our dependencies:

_stable/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You can start using it by first adding it to your `Cargo.toml`:
1313

1414
```toml
1515
[dependencies]
16-
hyper = { version = "1.0.0-rc.1", features = ["full"] }
16+
hyper = { version = "1.0.0-rc.2", features = ["full"] }
1717
```
1818

1919
- If building a web server, continue with the [Server guide][].

_stable/server/echo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ of our request body to uppercase, and returning the stream in our `Response`:
148148
(&Method::POST, "/echo/uppercase") => {
149149
// Map this body's frame to a different type
150150
let frame_stream = req.into_body().map_frame(|frame| {
151-
let frame = if let Some(data) = frame.into_data() {
151+
let frame = if let Ok(data) = frame.into_data() {
152152
// Convert every byte in every Data frame to uppercase
153153
data.iter()
154154
.map(|byte| byte.to_ascii_uppercase())

_stable/server/hello-world.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ First we need to declare our dependencies, let's add the following to our `Cargo
99

1010
```toml
1111
[dependencies]
12-
hyper = { version = "1.0.0-rc.1", features = ["full"] }
12+
hyper = { version = "1.0.0-rc.2", features = ["full"] }
1313
tokio = { version = "1", features = ["full"] }
14-
http-body-util = "0.1.0-rc.1"
14+
http-body-util = "0.1.0-rc.2"
1515
```
1616

1717
Next, we need to add some imports in our `main.rs` file:

0 commit comments

Comments
 (0)