Skip to content
Merged
Show file tree
Hide file tree
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
9 changes: 4 additions & 5 deletions .github/workflows/check_guides.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
#!/bin/bash

status=0

for value in legacy stable; do
if [ ! -e "$value/Cargo.toml" ]; then
Expand All @@ -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"
Expand All @@ -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
Expand All @@ -43,7 +43,6 @@ EOF
exit $?
fi

status=0
for f in $(git ls-files | grep "^_$value\/.*\.md$"); do
test_file "$f"
s=$?
Expand Down
4 changes: 2 additions & 2 deletions _stable/client/post.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -74,4 +74,4 @@ println!("Response status: {}", res.status());
# Ok(())
# }
# fn main() {}
```
```
2 changes: 1 addition & 1 deletion _stable/server/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
});
}
}

# }
# fn main() {}
```

Expand Down
Loading