Skip to content

simplify NoAllocBufferSegmentType::SingleSegment #1173

simplify NoAllocBufferSegmentType::SingleSegment

simplify NoAllocBufferSegmentType::SingleSegment #1173

Triggered via push March 28, 2024 18:43
Status Success
Total duration 5m 33s
Artifacts

ci.yml

on: push
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-4c991bb879f4e612/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-4c991bb879f4e612/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-4c991bb879f4e612/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-4c991bb879f4e612/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
type parameters go unused in function definition: Foo, Bar: target/debug/build/capnpc-test-edition-2015-c6ac644424654eca/out/test_capnp.rs#L19583
warning: type parameters go unused in function definition: Foo, Bar --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/capnpc-test-edition-2015-c6ac644424654eca/out/test_capnp.rs:19583:33 | 19583 | 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
type parameters go unused in function definition: Foo, Bar: target/debug/build/capnpc-test-edition-2015-c6ac644424654eca/out/test_capnp.rs#L19854
warning: type parameters go unused in function definition: Foo, Bar --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/capnpc-test-edition-2015-c6ac644424654eca/out/test_capnp.rs:19854:35 | 19854 | pub fn get_annotation_types<Foo,Bar>(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type where Foo: ::capnp::traits:... | ^^^ ^^^ | = help: consider removing the parameters = 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/capnp-rpc-test-50687bf22f17a978/out/test_capnp.rs#L6419
warning: this match could be replaced by its body itself --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/capnp-rpc-test-50687bf22f17a978/out/test_capnp.rs:6419:7 | 6419 | / match method_id { 6420 | | _ => { ::capnp::capability::Promise::err(::capnp::Error::unimplemented("Method not implemented.".to_string())) } 6421 | | } | |_______^ 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 parameters go unused in function definition: Foo, Bar, Baz: target/debug/build/capnpc-test-edition-2015-c6ac644424654eca/out/test_capnp.rs#L20226
warning: type parameters go unused in function definition: Foo, Bar, Baz --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/capnpc-test-edition-2015-c6ac644424654eca/out/test_capnp.rs:20226:35 | 20226 | pub fn get_annotation_types<Foo,Bar,Baz>(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type where Foo: ::capnp::tra... | ^^^ ^^^ ^^^ | = help: consider removing the parameters = 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, Baz, Qux: target/debug/build/capnpc-test-edition-2015-c6ac644424654eca/out/test_capnp.rs#L20595
warning: type parameters go unused in function definition: Foo, Bar, Baz, Qux --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/capnpc-test-edition-2015-c6ac644424654eca/out/test_capnp.rs:20595:37 | 20595 | ... pub fn get_annotation_types<Foo,Bar,Baz,Qux>(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type where Foo: ::capnp:... | ^^^ ^^^ ^^^ ^^^ | = help: consider removing the parameters = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
very complex type used. Consider factoring parts into `type` definitions: target/debug/build/capnpc-test-edition-2015-c6ac644424654eca/out/test_capnp.rs#L20674
warning: very complex type used. Consider factoring parts into `type` definitions --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/capnpc-test-edition-2015-c6ac644424654eca/out/test_capnp.rs:20674:43 | 20674 | ...-> ::capnp::capability::Request<crate::test_capnp::test_generics::inner2::Owned<Foo,Bar,::capnp::text_list::Owned>,crate::test_capnp::test_generics::inner2::Owned<Foo,Bar,::capnp::primitive_list::Owned<i16>>... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity = note: `#[warn(clippy::type_complexity)]` on by default
type parameters go unused in function definition: Foo, Bar: target/debug/build/capnpc-test-edition-2015-c6ac644424654eca/out/test_capnp.rs#L20984
warning: type parameters go unused in function definition: Foo, Bar --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/capnpc-test-edition-2015-c6ac644424654eca/out/test_capnp.rs:20984:32 | 20984 | ... pub fn get_field_types<Foo,Bar,Qux>(index: u16) -> ::capnp::introspect::Type where Foo: ::capnp::traits::Owned, Bar: ::capnp::trait... | ^^^ ^^^ | = help: consider removing the parameters = 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, Qux: target/debug/build/capnpc-test-edition-2015-c6ac644424654eca/out/test_capnp.rs#L20991
warning: type parameters go unused in function definition: Foo, Bar, Qux --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/capnpc-test-edition-2015-c6ac644424654eca/out/test_capnp.rs:20991:37 | 20991 | ... pub fn get_annotation_types<Foo,Bar,Qux>(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type where Foo: ::capnp::tra... | ^^^ ^^^ ^^^ | = help: consider removing the parameters = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters