Skip to content

add generic parameter to SetPointerBuilder #1101

add generic parameter to SetPointerBuilder

add generic parameter to SetPointerBuilder #1101

Triggered via pull request January 12, 2024 14:35
Status Success
Total duration 5m 45s
Artifacts

ci.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
type parameter `T` goes unused in function definition: target/debug/build/fill_random_values-d57cb5092355002c/out/fill_capnp.rs#L2411
warning: type parameter `T` goes unused in function definition --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/fill_random_values-d57cb5092355002c/out/fill_capnp.rs:2411:28 | 2411 | 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-d57cb5092355002c/out/fill_capnp.rs#L2414
warning: type parameter `T` goes unused in function definition --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/fill_random_values-d57cb5092355002c/out/fill_capnp.rs:2414:33 | 2414 | 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
this match could be replaced by its body itself: target/debug/build/pubsub-0ce53fd419da787e/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-0ce53fd419da787e/out/pubsub_capnp.rs:87:7 | 87 | / match method_id { 88 | | _ => { ::capnp::capability::Promise::err(::capnp::Error::unimplemented("Method not implemented.".to_string())) } 89 | | } | |_______^ help: consider using the match body instead: `::capnp::capability::Promise::err(::capnp::Error::unimplemented("Method not implemented.".to_string()))` | = 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
type parameter `T` goes unused in function definition: target/debug/build/pubsub-0ce53fd419da787e/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-0ce53fd419da787e/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
type parameter `T` goes unused in function definition: target/debug/build/pubsub-0ce53fd419da787e/out/pubsub_capnp.rs#L623
warning: type parameter `T` goes unused in function definition --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-0ce53fd419da787e/out/pubsub_capnp.rs:623:30 | 623 | 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
type parameter `T` goes unused in function definition: target/debug/build/pubsub-0ce53fd419da787e/out/pubsub_capnp.rs#L629
warning: type parameter `T` goes unused in function definition --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-0ce53fd419da787e/out/pubsub_capnp.rs:629:35 | 629 | 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
type parameter `T` goes unused in function definition: target/debug/build/pubsub-0ce53fd419da787e/out/pubsub_capnp.rs#L955
warning: type parameter `T` goes unused in function definition --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-0ce53fd419da787e/out/pubsub_capnp.rs:955:35 | 955 | 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
type parameter `T` goes unused in function definition: target/debug/build/pubsub-0ce53fd419da787e/out/pubsub_capnp.rs#L1126
warning: type parameter `T` goes unused in function definition --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-0ce53fd419da787e/out/pubsub_capnp.rs:1126:30 | 1126 | 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
type parameter `T` goes unused in function definition: target/debug/build/pubsub-0ce53fd419da787e/out/pubsub_capnp.rs#L1129
warning: type parameter `T` goes unused in function definition --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-0ce53fd419da787e/out/pubsub_capnp.rs:1129:35 | 1129 | 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
type parameters go unused in function definition: Foo, Bar: target/debug/build/capnpc-test-edition-2015-30454192b8a62f54/out/test_capnp.rs#L19485
warning: type parameters go unused in function definition: Foo, Bar --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/capnpc-test-edition-2015-30454192b8a62f54/out/test_capnp.rs:19485:33 | 19485 | pub fn get_annotation_types<Foo,Bar>(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type where Foo: ::capnp::traits::O... | ^^^ ^^^ | = help: consider removing the parameters = 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