diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 848b60a..0c36126 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: run: cargo test --no-default-features --features retry - name: Lint code if: ${{ matrix.rust-toolchain == 'stable' }} - run: cargo fmt -- --check && cargo clippy + run: cargo fmt -- --check && cargo clippy --all-features code_coverage: runs-on: ubuntu-latest steps: diff --git a/src/support/nom.rs b/src/support/nom.rs index a7b44d6..642000a 100644 --- a/src/support/nom.rs +++ b/src/support/nom.rs @@ -177,7 +177,7 @@ where where E: WithContext<'i>, { - for (input, kind) in self.errors.into_iter() { + for (input, kind) in self.errors { error = error.with_context(NomVerboseContext { span: input.as_bytes().into(), kind,