Skip to content

Mutate API

Mutate API #1290

GitHub Actions / clippy failed Nov 21, 2024 in 1s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (2)

src/proto/single/cmd.rs|322 col 17| warning: variants Discard and Clear are never constructed
--> src/proto/single/cmd.rs:326:5
|
322 | pub(crate) enum MutationType {
| ------------ variants in this enum
...
326 | Discard,
| ^^^^^^^
327 | Clear,
| ^^^^^
|
= note: MutationType has derived impls for the traits Debug and Clone, but these are intentionally ignored during dead code analysis
= note: #[warn(dead_code)] on by default
src/proto/single/mutation.rs|57 col 6| warning: the following explicit lifetimes could be elided: 'a
--> src/proto/single/mutation.rs:57:6
|
57 | impl<'a> MutationFilter<'> {
| ^^
58 | /// TODO
59 | pub fn builder() -> MutationFilterBuilder<'a> {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
57 ~ impl MutationFilter<'
> {
58 | /// TODO
59 ~ pub fn builder() -> MutationFilterBuilder<'_> {
|

Filtered Findings (0)

Annotations

Check warning on line 322 in src/proto/single/cmd.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] src/proto/single/cmd.rs#L322

warning: variants `Discard` and `Clear` are never constructed
   --> src/proto/single/cmd.rs:326:5
    |
322 | pub(crate) enum MutationType {
    |                 ------------ variants in this enum
...
326 |     Discard,
    |     ^^^^^^^
327 |     Clear,
    |     ^^^^^
    |
    = note: `MutationType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
    = note: `#[warn(dead_code)]` on by default
Raw output
src/proto/single/cmd.rs:322:17:w:warning: variants `Discard` and `Clear` are never constructed
   --> src/proto/single/cmd.rs:326:5
    |
322 | pub(crate) enum MutationType {
    |                 ------------ variants in this enum
...
326 |     Discard,
    |     ^^^^^^^
327 |     Clear,
    |     ^^^^^
    |
    = note: `MutationType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
    = note: `#[warn(dead_code)]` on by default


__END__

Check warning on line 57 in src/proto/single/mutation.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] src/proto/single/mutation.rs#L57

warning: the following explicit lifetimes could be elided: 'a
  --> src/proto/single/mutation.rs:57:6
   |
57 | impl<'a> MutationFilter<'_> {
   |      ^^
58 |     /// TODO
59 |     pub fn builder() -> MutationFilterBuilder<'a> {
   |                                               ^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
   |
57 ~ impl MutationFilter<'_> {
58 |     /// TODO
59 ~     pub fn builder() -> MutationFilterBuilder<'_> {
   |
Raw output
src/proto/single/mutation.rs:57:6:w:warning: the following explicit lifetimes could be elided: 'a
  --> src/proto/single/mutation.rs:57:6
   |
57 | impl<'a> MutationFilter<'_> {
   |      ^^
58 |     /// TODO
59 |     pub fn builder() -> MutationFilterBuilder<'a> {
   |                                               ^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
   |
57 ~ impl MutationFilter<'_> {
58 |     /// TODO
59 ~     pub fn builder() -> MutationFilterBuilder<'_> {
   |


__END__