diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9105f94..e0f7a63 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,3 +28,11 @@ jobs: - uses: dtolnay/rust-toolchain@nightly - run: cargo update -Z minimal-versions - run: cargo test + + clippy: + name: Clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: dtolnay/rust-toolchain@clippy + - run: cargo clippy --tests -- -Dclippy::all diff --git a/src/lib.rs b/src/lib.rs index 2614105..8627a0e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -145,6 +145,8 @@ //! //!
+#![allow(clippy::needless_doctest_main, clippy::toplevel_ref_arg)] + extern crate proc_macro; mod attr;