Merge pull request #1081 from ahlinc/feat/fail-ci-on-compiler-warnings

feat: Fail CI on compiler warnings
This commit is contained in:
Max Brunsfeld 2021-05-01 09:26:44 -07:00 committed by GitHub
commit fe5a29a1c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View file

@ -64,7 +64,7 @@ jobs:
run: script/build-wasm
- name: Build CLI
run: cargo build --release
run: RUSTFLAGS="-D warnings" cargo build --release
- name: Set up fixture parsers
run: |

View file

@ -75,7 +75,6 @@ pub(crate) struct TokenSetDisplay<'a>(
pub &'a LexicalGrammar,
);
#[allow(dead_code)]
pub(crate) struct ParseItemSetDisplay<'a>(
pub &'a ParseItemSet<'a>,
pub &'a SyntaxGrammar,
@ -181,7 +180,6 @@ impl<'a> Default for ParseItemSet<'a> {
}
}
#[allow(dead_code)]
impl<'a> fmt::Display for ParseItemDisplay<'a> {
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
if self.0.is_augmented() {