Update to latest Rust and fix Clippy warnings (#37)

* Update to latest Rust and fix Clippy warnings

* cleanup
This commit is contained in:
Srinath Setty
2021-10-14 16:11:19 -07:00
committed by GitHub
parent f465aed924
commit 19d1d63703
19 changed files with 227 additions and 249 deletions

View File

@@ -1,4 +1,4 @@
name: Rust
name: Build and Test Spartan
on:
push:
@@ -8,16 +8,23 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install
run: rustup default nightly-2021-01-31
run: rustup default nightly
- name: Install rustfmt Components
run: rustup component add rustfmt
- name: Install clippy
run: rustup component add clippy
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Build examples
run: cargo build --examples --verbose
- name: Check Rustfmt Code Style
run: cargo fmt --all -- --check
- name: Check clippy warnings
run: cargo clippy --all-targets --all-features -- -D warnings