diff --git a/.github/workflows/check_guides.sh b/.github/workflows/check_guides.sh index db248d5..7207cdb 100755 --- a/.github/workflows/check_guides.sh +++ b/.github/workflows/check_guides.sh @@ -1,4 +1,6 @@ -#!/bin/sh +#!/bin/bash + +status=0 for value in legacy stable; do if [ ! -e "$value/Cargo.toml" ]; then @@ -11,7 +13,6 @@ for value in legacy stable; do case "$value" in legacy) cat >> "$value/Cargo.toml" <<-EOF - [dependencies] futures = "0.3" hyper = { version = "0.14", features = ["full"] } hyper-tls = "0.5" @@ -20,12 +21,11 @@ EOF ;; stable) cat >> "$value/Cargo.toml" <<-EOF - [dependencies] hyper = { version = "1", features = ["full"] } tokio = { version = "1", features = ["full"] } http-body-util = "0.1" hyper-util = { version = "0.1", features = ["full"] } - tower = "0.4" + tower = { version = "0.4", features = ["util"] } EOF ;; esac @@ -43,7 +43,6 @@ EOF exit $? fi - status=0 for f in $(git ls-files | grep "^_$value\/.*\.md$"); do test_file "$f" s=$? diff --git a/_stable/client/post.md b/_stable/client/post.md index 789796d..3ce1a5a 100644 --- a/_stable/client/post.md +++ b/_stable/client/post.md @@ -19,7 +19,7 @@ For the body, we have a couple of options. We can use a simple string, a JSON st # extern crate hyper; # extern crate hyper_util; # extern crate tokio; -# use http_body_util::Empty; +# use http_body_util::{Empty, Full}; # use hyper::body::Bytes; # use hyper::Request; # use hyper_util::rt::TokioIo; @@ -74,4 +74,4 @@ println!("Response status: {}", res.status()); # Ok(()) # } # fn main() {} -``` \ No newline at end of file +``` diff --git a/_stable/server/middleware.md b/_stable/server/middleware.md index 32cc49a..0c4fb72 100644 --- a/_stable/server/middleware.md +++ b/_stable/server/middleware.md @@ -244,7 +244,7 @@ async fn main() -> Result<(), Box> { }); } } - +# } # fn main() {} ```