Skip to content

Commit

Permalink
Switch to clippy-action and solve warnings (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
gagbo authored Jan 2, 2024
1 parent 9deed5e commit 3fdea32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ pub fn fp_export_impl(attributes: TokenStream, input: TokenStream) -> TokenStrea
syn::parse_macro_input::parse::<AttributeArgs>(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,
Expand Down

0 comments on commit 3fdea32

Please sign in to comment.