Skip to content

Implement delegate_components! as proc macro, and introduce define_components! macro #4

Implement delegate_components! as proc macro, and introduce define_components! macro

Implement delegate_components! as proc macro, and introduce define_components! macro #4

Triggered via pull request July 2, 2024 07:06
Status Failure
Total duration 27s
Artifacts

tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 18 warnings
using `clone` on type `Option<Gt>` which implements the `Copy` trait: crates/cgp-component-macro-lib/src/delegate_components/merge_generics.rs#L31
error: using `clone` on type `Option<Gt>` which implements the `Copy` trait --> crates/cgp-component-macro-lib/src/delegate_components/merge_generics.rs:31:19 | 31 | gt_token: generics_a.gt_token.clone(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `generics_a.gt_token` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `Option<Lt>` which implements the `Copy` trait: crates/cgp-component-macro-lib/src/delegate_components/merge_generics.rs#L29
error: using `clone` on type `Option<Lt>` which implements the `Copy` trait --> crates/cgp-component-macro-lib/src/delegate_components/merge_generics.rs:29:19 | 29 | lt_token: generics_a.lt_token.clone(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `generics_a.lt_token` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy = note: `-D clippy::clone-on-copy` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::clone_on_copy)]`
`to_string` applied to a type that implements `Display` in `format!` args: crates/cgp-component-macro-lib/src/delegate_components/define.rs#L38
error: `to_string` applied to a type that implements `Display` in `format!` args --> crates/cgp-component-macro-lib/src/delegate_components/define.rs:38:84 | 38 | let delegates_to_trait_name = format!("DelegatesTo{}", ast.components_ident.to_string(),); | ^^^^^^^^^^^^ help: remove this | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args = note: `-D clippy::to-string-in-format-args` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::to_string_in_format_args)]`
using `clone` on type `Option<Gt>` which implements the `Copy` trait: crates/cgp-component-macro-lib/src/delegate_components/merge_generics.rs#L31
error: using `clone` on type `Option<Gt>` which implements the `Copy` trait --> crates/cgp-component-macro-lib/src/delegate_components/merge_generics.rs:31:19 | 31 | gt_token: generics_a.gt_token.clone(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `generics_a.gt_token` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `Option<Lt>` which implements the `Copy` trait: crates/cgp-component-macro-lib/src/delegate_components/merge_generics.rs#L29
error: using `clone` on type `Option<Lt>` which implements the `Copy` trait --> crates/cgp-component-macro-lib/src/delegate_components/merge_generics.rs:29:19 | 29 | lt_token: generics_a.lt_token.clone(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `generics_a.lt_token` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy = note: `-D clippy::clone-on-copy` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::clone_on_copy)]`
`to_string` applied to a type that implements `Display` in `format!` args: crates/cgp-component-macro-lib/src/delegate_components/define.rs#L38
error: `to_string` applied to a type that implements `Display` in `format!` args --> crates/cgp-component-macro-lib/src/delegate_components/define.rs:38:84 | 38 | let delegates_to_trait_name = format!("DelegatesTo{}", ast.components_ident.to_string(),); | ^^^^^^^^^^^^ help: remove this | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args = note: `-D clippy::to-string-in-format-args` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::to_string_in_format_args)]`
clippy
Clippy had exited with the 101 exit code
fmt
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
fmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/