Skip to content

Clippy fixes; updated Cargo.lock #55

Clippy fixes; updated Cargo.lock

Clippy fixes; updated Cargo.lock #55

Workflow file for this run

name: Lint rust
on:
push:
branches:
- main
pull_request:
branches:
- main
- dev
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
jobs:
lint:
runs-on: [self-hosted, linux]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install rustup
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt, clippy
- name: Cache rust
uses: Swatinem/rust-cache@v2
with:
key: lint-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install protoc
run: sudo apt-get update && sudo apt-get -y install protobuf-compiler
- name: Check format
run: |
cargo fmt --all -- --check
cargo clippy --all-targets --all-features