From 136f7b7294fe8bec0fbabc1638a7136ce5ff7a4f Mon Sep 17 00:00:00 2001 From: William Law Date: Fri, 3 Oct 2025 09:54:17 -0400 Subject: [PATCH 1/3] enforce clippy warnings to be same as locally --- .cargo/config.toml | 2 ++ .github/workflows/rust.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..16899e1 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[target.'cfg(all())'] +rustflags = ["-D", "warnings"] \ No newline at end of file diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9c157f1..3f3da27 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -66,7 +66,7 @@ jobs: - uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable with: components: clippy - - run: cargo clippy -- -D warnings + - run: cargo clippy build: name: Build From 98d4077463b49e759476af476d274755c4acdf8f Mon Sep 17 00:00:00 2001 From: William Law Date: Fri, 3 Oct 2025 10:02:43 -0400 Subject: [PATCH 2/3] try another approach --- .cargo/config.toml | 4 ++-- .github/workflows/rust.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 16899e1..d64e99b 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,2 @@ -[target.'cfg(all())'] -rustflags = ["-D", "warnings"] \ No newline at end of file +[alias] +clippy-ci = "clippy -- -D warnings" \ No newline at end of file diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3f3da27..2466e17 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -66,7 +66,7 @@ jobs: - uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable with: components: clippy - - run: cargo clippy + - run: cargo clippy-ci build: name: Build From 25e1e71c619bf52b0b5a172aeda71927efc2f96a Mon Sep 17 00:00:00 2001 From: William Law Date: Fri, 3 Oct 2025 10:09:44 -0400 Subject: [PATCH 3/3] one more time --- .cargo/config.toml | 2 -- .github/workflows/rust.yml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml deleted file mode 100644 index d64e99b..0000000 --- a/.cargo/config.toml +++ /dev/null @@ -1,2 +0,0 @@ -[alias] -clippy-ci = "clippy -- -D warnings" \ No newline at end of file diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2466e17..bfd7c59 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -66,7 +66,7 @@ jobs: - uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable with: components: clippy - - run: cargo clippy-ci + - run: cargo clippy --all-targets --all-features -- -D warnings build: name: Build