Introduce Accessor Component Macros #71
clippy-all-features
6 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 6 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.83.0 (90b35a623 2024-11-26)
- cargo 1.83.0 (5ffbef321 2024-10-29)
- clippy 0.1.83 (90b35a6 2024-11-26)
Annotations
Check failure on line 30 in crates/cgp-component-macro-lib/src/derive_component/derive.rs
github-actions / clippy-all-features
this expression creates a reference which is immediately dereferenced by the compiler
error: this expression creates a reference which is immediately dereferenced by the compiler
--> crates/cgp-component-macro-lib/src/derive_component/derive.rs:30:46
|
30 | let consumer_impl = derive_consumer_impl(&consumer_trait, provider_name, context_type);
| ^^^^^^^^^^^^^^^ help: change this to: `consumer_trait`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check failure on line 28 in crates/cgp-component-macro-lib/src/derive_component/derive.rs
github-actions / clippy-all-features
this expression creates a reference which is immediately dereferenced by the compiler
error: this expression creates a reference which is immediately dereferenced by the compiler
--> crates/cgp-component-macro-lib/src/derive_component/derive.rs:28:48
|
28 | let provider_trait = derive_provider_trait(&consumer_trait, provider_name, context_type)?;
| ^^^^^^^^^^^^^^^ help: change this to: `consumer_trait`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
Check failure on line 30 in crates/cgp-component-macro-lib/src/derive_component/derive.rs
github-actions / clippy-all-features
this expression creates a reference which is immediately dereferenced by the compiler
error: this expression creates a reference which is immediately dereferenced by the compiler
--> crates/cgp-component-macro-lib/src/derive_component/derive.rs:30:46
|
30 | let consumer_impl = derive_consumer_impl(&consumer_trait, provider_name, context_type);
| ^^^^^^^^^^^^^^^ help: change this to: `consumer_trait`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check failure on line 28 in crates/cgp-component-macro-lib/src/derive_component/derive.rs
github-actions / clippy-all-features
this expression creates a reference which is immediately dereferenced by the compiler
error: this expression creates a reference which is immediately dereferenced by the compiler
--> crates/cgp-component-macro-lib/src/derive_component/derive.rs:28:48
|
28 | let provider_trait = derive_provider_trait(&consumer_trait, provider_name, context_type)?;
| ^^^^^^^^^^^^^^^ help: change this to: `consumer_trait`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
Check failure on line 24 in crates/cgp-component-macro-lib/src/derive_component/component_spec.rs
github-actions / clippy-all-features
statics have by default a `'static` lifetime
error: statics have by default a `'static` lifetime
--> crates/cgp-component-macro-lib/src/derive_component/component_spec.rs:24:22
|
24 | static VALID_KEYS: [&'static str; 3] = ["context", "provider", "name"];
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
= note: `-D clippy::redundant-static-lifetimes` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::redundant_static_lifetimes)]`
Check failure on line 24 in crates/cgp-component-macro-lib/src/derive_component/component_spec.rs
github-actions / clippy-all-features
statics have by default a `'static` lifetime
error: statics have by default a `'static` lifetime
--> crates/cgp-component-macro-lib/src/derive_component/component_spec.rs:24:22
|
24 | static VALID_KEYS: [&'static str; 3] = ["context", "provider", "name"];
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
= note: `-D clippy::redundant-static-lifetimes` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::redundant_static_lifetimes)]`