update clippy in CI #1376
Annotations
10 warnings
type parameter `T` goes unused in function definition:
target/debug/build/fill_random_values-59dcbc8bf5010f9a/out/fill_capnp.rs#L2431
warning: type parameter `T` goes unused in function definition
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/fill_random_values-59dcbc8bf5010f9a/out/fill_capnp.rs:2431:28
|
2431 | pub fn get_field_types<T>(index: u16) -> ::capnp::introspect::Type where T: ::capnp::traits::Owned {
| ^
|
= help: consider removing the parameter
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
= note: `#[warn(clippy::extra_unused_type_parameters)]` on by default
|
type parameter `T` goes unused in function definition:
target/debug/build/fill_random_values-59dcbc8bf5010f9a/out/fill_capnp.rs#L2434
warning: type parameter `T` goes unused in function definition
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/fill_random_values-59dcbc8bf5010f9a/out/fill_capnp.rs:2434:33
|
2434 | pub fn get_annotation_types<T>(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type where T: ::capnp::traits::Owned {
| ^
|
= help: consider removing the parameter
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
|
the following explicit lifetimes could be elided: 'a:
target/debug/build/calculator-5b7f35edf5d51f2e/out/calculator_capnp.rs#L2001
warning: the following explicit lifetimes could be elided: 'a
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/calculator-5b7f35edf5d51f2e/out/calculator_capnp.rs:2001:11
|
2001 | impl <'a,> Reader<'a,> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
2001 - impl <'a,> Reader<'a,> {
2001 + impl Reader<'_,> {
|
|
the following explicit lifetimes could be elided: 'a:
target/debug/build/calculator-5b7f35edf5d51f2e/out/calculator_capnp.rs#L2448
warning: the following explicit lifetimes could be elided: 'a
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/calculator-5b7f35edf5d51f2e/out/calculator_capnp.rs:2448:11
|
2448 | impl <'a,> Reader<'a,> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
2448 - impl <'a,> Reader<'a,> {
2448 + impl Reader<'_,> {
|
|
the following explicit lifetimes could be elided: 'a:
target/debug/build/calculator-5b7f35edf5d51f2e/out/calculator_capnp.rs#L2851
warning: the following explicit lifetimes could be elided: 'a
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/calculator-5b7f35edf5d51f2e/out/calculator_capnp.rs:2851:11
|
2851 | impl <'a,> Reader<'a,> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
2851 - impl <'a,> Reader<'a,> {
2851 + impl Reader<'_,> {
|
|
this match could be replaced by its body itself:
target/debug/build/pubsub-d370a952c82913d8/out/pubsub_capnp.rs#L87
warning: this match could be replaced by its body itself
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-d370a952c82913d8/out/pubsub_capnp.rs:87:7
|
87 | / match method_id {
88 | | _ => { ::capnp::capability::DispatchCallResult::new(::capnp::capability::Promise::err(::capnp::Error::unimplemented("Method not i...
89 | | }
| |_______^ help: consider using the match body instead: `::capnp::capability::DispatchCallResult::new(::capnp::capability::Promise::err(::capnp::Error::unimplemented("Method not implemented.".to_string())), false)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_single_binding
= note: `#[warn(clippy::match_single_binding)]` on by default
|
the following explicit lifetimes could be elided: 'a:
target/debug/build/pubsub-d370a952c82913d8/out/pubsub_capnp.rs#L256
warning: the following explicit lifetimes could be elided: 'a
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-d370a952c82913d8/out/pubsub_capnp.rs:256:11
|
256 | impl <'a,T> Reader<'a,T> where T: ::capnp::traits::Owned {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
256 - impl <'a,T> Reader<'a,T> where T: ::capnp::traits::Owned {
256 + impl <T> Reader<'_,T> where T: ::capnp::traits::Owned {
|
|
type parameter `T` goes unused in function definition:
target/debug/build/pubsub-d370a952c82913d8/out/pubsub_capnp.rs#L412
warning: type parameter `T` goes unused in function definition
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-d370a952c82913d8/out/pubsub_capnp.rs:412:35
|
412 | pub fn get_annotation_types<T>(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type where T: ::capnp::traits::Owned {
| ^
|
= help: consider removing the parameter
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
= note: `#[warn(clippy::extra_unused_type_parameters)]` on by default
|
the following explicit lifetimes could be elided: 'a:
target/debug/build/pubsub-d370a952c82913d8/out/pubsub_capnp.rs#L486
warning: the following explicit lifetimes could be elided: 'a
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-d370a952c82913d8/out/pubsub_capnp.rs:486:11
|
486 | impl <'a,T> Reader<'a,T> where T: ::capnp::traits::Owned {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
486 - impl <'a,T> Reader<'a,T> where T: ::capnp::traits::Owned {
486 + impl <T> Reader<'_,T> where T: ::capnp::traits::Owned {
|
|
type parameter `T` goes unused in function definition:
target/debug/build/pubsub-d370a952c82913d8/out/pubsub_capnp.rs#L625
warning: type parameter `T` goes unused in function definition
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-d370a952c82913d8/out/pubsub_capnp.rs:625:30
|
625 | pub fn get_field_types<T>(index: u16) -> ::capnp::introspect::Type where T: ::capnp::traits::Owned {
| ^
|
= help: consider removing the parameter
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
|