diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5d256b0..8fc77a8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,10 +45,12 @@ jobs: fi - name: Lint code - uses: actions-rs/clippy-check@v1 + uses: giraffate/clippy-action@v1 with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features + github_token: ${{ secrets.GITHUB_TOKEN }} + filter_mode: nofilter + fail_on_error: true + clippy_flags: --all-features - name: Check format run: cargo fmt -- --check diff --git a/macros/src/lib.rs b/macros/src/lib.rs index 4ccb11b..7cc1862 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -345,7 +345,7 @@ pub fn fp_export_impl(attributes: TokenStream, input: TokenStream) -> TokenStrea syn::parse_macro_input::parse::(attributes.clone()).unwrap_or_abort(); let protocol_path = attrs - .get(0) + .first() .map(|om| match om { syn::NestedMeta::Meta(meta) => match meta { syn::Meta::Path(path) => path,