Skip to content

Commit

Permalink
Run cargo clippy when building the Pokémon Service
Browse files Browse the repository at this point in the history
  • Loading branch information
GeneralSwiss committed Sep 20, 2022
1 parent ffafbec commit 24af6da
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.next.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
# meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client | server | all"}
# author = "rcoh"

[[rust-runtime]]
message = "Pokémon Service example code now runs clippy during build."
references = ["smithy-rs#1727"]
meta = { "breaking" = false, "tada" = false, "bug" = false }
author = "GeneralSwiss"

[[aws-sdk-rust]]
message = "`aws_config::RetryConfig` no longer implements `Default`, and its `new` function has been replaced with `standard`."
references = ["smithy-rs#1603", "aws-sdk-rust#586"]
Expand Down
3 changes: 3 additions & 0 deletions rust-runtime/aws-smithy-http-server-python/examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ codegen:
cp -av $(SERVER_SDK_SRC)/* $(SERVER_SDK_DST)/
cp -av $(CLIENT_SDK_SRC)/* $(CLIENT_SDK_DST)/

clippy: codegen
cargo clippy

build: codegen
cargo build
ln -sf $(DEBUG_SHARED_LIBRARY_SRC) $(SHARED_LIBRARY_DST)
Expand Down
6 changes: 6 additions & 0 deletions rust-runtime/aws-smithy-http-server/examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ build: codegen
run: codegen
cargo run

clippy: codegen
cargo clippy

test: codegen
cargo test

doc-open: codegen
cargo doc --no-deps --open

Expand Down
3 changes: 1 addition & 2 deletions tools/ci-build/scripts/check-server-e2e-test
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
set -eux
cd smithy-rs/rust-runtime/aws-smithy-http-server/examples

make
cargo test
make test clippy
2 changes: 1 addition & 1 deletion tools/ci-build/scripts/check-server-python-e2e-test
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
set -eux
cd smithy-rs/rust-runtime/aws-smithy-http-server-python/examples

make test
make test clippy

0 comments on commit 24af6da

Please sign in to comment.