File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,13 +24,14 @@ jobs:
2424 args : --check
2525
2626 clippy :
27- name : Clippy
27+ name : " Clippy (${{ matrix.crate && matrix.crate || 'base' }}) "
2828 runs-on : ${{ matrix.config.os }}
2929 strategy :
3030 fail-fast : false
3131 matrix :
3232 config :
3333 - { os: ubuntu-latest, target: 'x86_64-unknown-linux-gnu' }
34+ crate : [null, "derive"]
3435 steps :
3536 - uses : actions/checkout@v2
3637 - uses : actions-rs/toolchain@v1
4142 - uses : actions-rs/cargo@v1
4243 with :
4344 command : clippy
45+ args : ${{ matrix.crate && format(' --manifest-path {1}/Cargo.toml', matrix.crate) }}
4446
4547 test_all :
4648 name : TestAll
Original file line number Diff line number Diff line change @@ -1265,7 +1265,7 @@ pub(crate) fn derive_struct_diff_enum(enum_: &Enum) -> TokenStream {
12651265
12661266 let ref_into_owned_body = format ! (
12671267 "Self::Replace(variant) => {}::Replace(variant.clone())," ,
1268- & enum_name
1268+ enum_name
12691269 ) ;
12701270 let struct_generics_names_hash: HashSet < & str > =
12711271 enum_. generics . iter ( ) . map ( |x| x. full ( ) ) . collect ( ) ;
Original file line number Diff line number Diff line change @@ -1141,7 +1141,7 @@ fn next_attributes_list(source: &mut Peekable<impl Iterator<Item = TokenTree>>)
11411141
11421142 while let Some ( attr) = next_attribute ( source) {
11431143 if let Some ( structdiff_attr) = attr {
1144- attributes. extend ( structdiff_attr. into_iter ( ) ) ;
1144+ attributes. extend ( structdiff_attr) ;
11451145 }
11461146 }
11471147
You can’t perform that action at this time.
0 commit comments