From 8eef790a610313ec41ef5c38f41aca0da19ac806 Mon Sep 17 00:00:00 2001 From: Andrew Helwer Date: Tue, 28 Sep 2021 18:51:09 -0400 Subject: [PATCH] Build rust with warnings=errors --- .github/workflows/ci.yml | 8 ++++++-- cli/src/util.rs | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70840371..28e5979d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,7 +70,9 @@ jobs: run: script/build-wasm - name: Build CLI - run: RUSTFLAGS="-D warnings" cargo build --release + run: | + RUSTFLAGS="-D warnings" + cargo build --release - name: Set up fixture parsers run: | @@ -134,7 +136,9 @@ jobs: run: cargo fmt -- --check - name: Build CLI - run: RUSTFLAGS="-D warnings" cargo build --release + run: | + $env:RUSTFLAGS="-D warnings" + cargo build --release - name: Set up fixture parsers run: | diff --git a/cli/src/util.rs b/cli/src/util.rs index 396702c8..db69bbd6 100644 --- a/cli/src/util.rs +++ b/cli/src/util.rs @@ -1,4 +1,4 @@ -use anyhow::{anyhow, Context, Result}; +use anyhow::{Result}; use std::io; use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::Arc;