Skip to content

Commit fcf610e

Browse files
authored
ci: Run clippy with edition 2024 enabled (#1256)
Temporary set workspace edition to 2024 to enable more lints in the macros. This verifies that the generated code in our macros is 2024 edition compatible.
1 parent 8a3d42e commit fcf610e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ jobs:
7373
toolchain: ${{ env.clippy_rust_version }}
7474
components: clippy
7575
- run: cargo clippy --workspace --exclude protobuf --all-features --tests -- -D warnings
76+
- name: enable edition 2024 lints in `prost-derive` macros
77+
run: sed -i 's/edition = "[0-9]*"/edition = "2024"/' Cargo.toml
78+
- name: set MSRV to clippy version to enable more lints
79+
run: sed -i 's/rust-version = "[.0-9]*"/rust-version = "${{ env.clippy_rust_version }}"/' Cargo.toml
80+
- name: clippy with edition 2024
81+
run: cargo clippy --workspace --exclude protobuf --all-features --tests -- -D warnings
7682

7783
docs:
7884
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)