Remove needless map #108
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
name: Clippy check | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
clippy_check: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: rustup component add clippy | |
# Workaround from https://github.com/actions-rs/clippy-check/issues/2#issuecomment-807878478 | |
# - name: Check workflow permissions | |
# id: check_permissions | |
# uses: scherermichael-oss/[email protected] | |
# with: | |
# required-permission: write | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# - name: Run clippy action to produce annotations | |
# uses: actions-rs/clippy-check@v1 | |
# if: steps.check_permissions.outputs.has-permission | |
# with: | |
# args: --all-targets -- -D warnings | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# - name: Run clippy manually without annotations | |
# if: ${{ !steps.check_permissions.outputs.has-permission }} | |
# run: cargo clippy --all-targets -- -D warnings | |
- name: Run clippy manually without annotations | |
run: cargo clippy --all-targets -- -D warnings |