Skip to content

Commit 0d46327

Browse files
committed
tmp
1 parent 52dadd9 commit 0d46327

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎.github/workflows/rust.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
@@ -41,6 +42,7 @@ jobs:
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

‎derive/src/difference.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

‎derive/src/parse.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)