Unverified Commit ff13b087 authored by Nicolas Farrier's avatar Nicolas Farrier Committed by GitHub
Browse files

Run `cargo clippy` when building the Pokémon Service (#1742)

parent 81eb7321
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -10,3 +10,9 @@
# references = ["smithy-rs#920"]
# 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"
+3 −0
Original line number Diff line number Diff line
@@ -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)
+6 −0
Original line number Diff line number Diff line
@@ -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

+1 −2
Original line number Diff line number Diff line
@@ -6,5 +6,4 @@
set -eux
cd smithy-rs/rust-runtime/aws-smithy-http-server/examples

make
cargo test
make test clippy
+1 −1
Original line number Diff line number Diff line
@@ -6,4 +6,4 @@
set -eux
cd smithy-rs/rust-runtime/aws-smithy-http-server-python/examples

make test
make test clippy