1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Use cargo cranky instead of cargo clippy (#1820)

* Use cargo cranky instead of cargo clippy

cargo cranky (https://github.com/ericseppanen/cargo-cranky)
is a new tool that passes lints specified in a Cranky.toml
to cargo clippy.

This is a possible solution to
https://github.com/rust-lang/cargo/issues/5034

* Remove `-W clippy::all` from `check.sh` (rely on `Cranky.toml` instead)
This commit is contained in:
Emil Ernerfeldt
2022-07-20 12:34:19 +02:00
committed by GitHub
parent 898f4804b7
commit bf15bb6e19
5 changed files with 116 additions and 108 deletions

View File

@@ -142,8 +142,8 @@ jobs:
command: fmt
args: --all -- --check
clippy:
name: cargo clippy
cranky:
name: cargo cranky
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@@ -152,14 +152,14 @@ jobs:
profile: minimal
toolchain: 1.60.0
override: true
- run: rustup component add clippy
- run: cargo install cargo-cranky
- name: Install packages (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install libspeechd-dev libgtk-3-dev # libgtk-3-dev is used by rfd
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-targets --all-features -- -D warnings -W clippy::all
command: cranky
args: --workspace --all-targets --all-features -- -D warnings
doc:
name: cargo doc