Skip to content

Commit

Permalink
Merge pull request dtolnay#932 from dtolnay/clippy
Browse files Browse the repository at this point in the history
Re-enable clippy after upstream crash fix
  • Loading branch information
dtolnay committed Sep 12, 2021
2 parents d9a561c + 1fae979 commit 5d71b1f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
#if: github.event_name != 'pull_request'
if: false # Clippy crash: https://github.com/rust-lang/rust-clippy/issues/7423
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@clippy
Expand Down
1 change: 1 addition & 0 deletions gen/build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
clippy::doc_markdown,
clippy::drop_copy,
clippy::enum_glob_use,
clippy::if_same_then_else,
clippy::inherent_to_string,
clippy::items_after_statements,
clippy::let_underscore_drop,
Expand Down
1 change: 1 addition & 0 deletions gen/cmd/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
clippy::cognitive_complexity,
clippy::default_trait_access,
clippy::enum_glob_use,
clippy::if_same_then_else,
clippy::inherent_to_string,
clippy::items_after_statements,
clippy::large_enum_variant,
Expand Down
1 change: 1 addition & 0 deletions gen/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
clippy::cast_sign_loss,
clippy::default_trait_access,
clippy::enum_glob_use,
clippy::if_same_then_else,
clippy::inherent_to_string,
clippy::items_after_statements,
clippy::match_bool,
Expand Down
1 change: 1 addition & 0 deletions macro/src/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ fn struct_default(strct: &Struct, span: Span) -> TokenStream {
let fields = strct.fields.iter().map(|field| &field.name.rust);

quote_spanned! {span=>
#[allow(clippy::derivable_impls)] // different spans than the derived impl
impl #generics ::std::default::Default for #ident #generics {
fn default() -> Self {
#ident {
Expand Down
2 changes: 1 addition & 1 deletion macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
clippy::default_trait_access,
clippy::doc_markdown,
clippy::enum_glob_use,
clippy::filter_map,
clippy::if_same_then_else,
clippy::inherent_to_string,
clippy::items_after_statements,
clippy::large_enum_variant,
Expand Down

0 comments on commit 5d71b1f

Please sign in to comment.