Skip to content

Fix clippy errors

Fix clippy errors #4

Workflow file for this run

name: fmt
on:
push:
branches:
- main
paths:
- "src/**"
- "tests/**"
- "scripts/**"
- "proto/**"
pull_request:
types: [ opened, synchronize ]
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
fmt:
runs-on: ubuntu-22.04
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install Prerequisites
run: sh ./install.sh
- name: add path
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run fmt check
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings