Skip to content

Update to Rust 2021, MSRV 1.59 #5

Update to Rust 2021, MSRV 1.59

Update to Rust 2021, MSRV 1.59 #5

Workflow file for this run

# This is the clippy workflow, seperate from the main 'Rust' workflow
#
# This is copied from slog-rs/slog
#
# TODO: Should clippy success be required or not?
on: [push, pull_request]
name: Clippy
env:
CARGO_TERM_COLOR: always
# has a history of occasional bugs (especially on old versions)
#
# the ci is free so we might as well use it ;)
CARGO_INCREMENTAL: 0
jobs:
clippy:
# Only run on PRs if the source branch is on someone else's repo
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: clippy
- shell: bash
run: |
cargo clippy