web/url: Don't reinvent custom IP types #299
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://doc.rust-lang.org/stable/clippy/continuous_integration/github_actions.html | |
on: push | |
name: Clippy check | |
# Make sure CI fails on all warnings, including Clippy lints | |
env: | |
RUSTFLAGS: "-Dwarnings" | |
jobs: | |
clippy_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install latest nightly | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
components: rustfmt, clippy | |
- name: Install required libraries | |
run: sudo apt install libxkbcommon-x11-dev | |
- name: Download required files | |
run: python3 setup.py | |
- name: Run Clippy | |
run: cargo clippy --all-targets --all-features -- -Dclippy::correctness -Dclippy::perf -Aclippy::needless_range_loop -Aclippy::redundant_field_names -Aclippy::neg_multiply -Aclippy::upper_case_acronyms -Aclippy::iter_nth_zero -Aclippy::enum-variant-names | |