start trying to implement tail_call() and set_pipeline() #1244
Annotations
10 warnings
capnp/src/capability.rs#L267
warning: unused variable: `pipeline`
--> capnp/src/capability.rs:267:36
|
267 | pub fn set_pipeline(&mut self, pipeline: T::Pipeline) {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pipeline`
|
= note: `#[warn(unused_variables)]` on by default
|
capnp/src/private/capability.rs#L101
warning: unused variable: `pipeline`
--> capnp/src/private/capability.rs:101:23
|
101 | let (promise, pipeline) = self.direct_tail_call(request);
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pipeline`
|
target/debug/build/fill_random_values-2fa3a13eb53b13ba/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-2fa3a13eb53b13ba/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
|
target/debug/build/fill_random_values-2fa3a13eb53b13ba/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-2fa3a13eb53b13ba/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
|
capnp/src/serialize.rs#L1015
warning: useless use of `vec!`
--> capnp/src/serialize.rs:1015:24
|
1015 | let segments = vec![
| ________________________^
1016 | | vec![123, 0, 0, 0, 0, 0, 0, 0],
1017 | | vec![4, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0],
1018 | | ];
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
= note: `#[warn(clippy::useless_vec)]` on by default
help: you can use an array directly
|
1015 ~ let segments = [vec![123, 0, 0, 0, 0, 0, 0, 0],
1016 ~ vec![4, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0]];
|
|
capnp/src/serialize.rs#L1047
warning: useless use of `vec!`
--> capnp/src/serialize.rs:1047:24
|
1047 | let segments = vec![
| ________________________^
1048 | | vec![1, 0, 0, 0, 0, 0, 0, 0],
1049 | | vec![2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0],
1050 | | ];
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
help: you can use an array directly
|
1047 ~ let segments = [vec![1, 0, 0, 0, 0, 0, 0, 0],
1048 ~ vec![2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0]];
|
|
capnp-rpc/src/local.rs#L129
warning: unused variable: `pipeline`
--> capnp-rpc/src/local.rs:129:32
|
129 | fn set_pipeline(&mut self, pipeline: Box<dyn PipelineHook>) {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pipeline`
|
= note: `#[warn(unused_variables)]` on by default
|
capnp-rpc/src/rpc.rs#L2299
warning: unused variable: `pipeline`
--> capnp-rpc/src/rpc.rs:2299:32
|
2299 | fn set_pipeline(&mut self, pipeline: Box<dyn PipelineHook>) {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pipeline`
|
capnp-rpc/src/rpc.rs#L2308
warning: unused variable: `pipeline`
--> capnp-rpc/src/rpc.rs:2308:23
|
2308 | let (promise, pipeline) = self.direct_tail_call(request);
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pipeline`
|
capnp-rpc/src/rpc.rs#L2180
warning: field `tail_call_pipeline_fulfiller` is never read
--> capnp-rpc/src/rpc.rs:2180:5
|
2172 | struct ResultsInner<VatId>
| ------------ field in this struct
...
2180 | tail_call_pipeline_fulfiller: Option<oneshot::Sender<any_pointer::Pipeline>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
This job succeeded
Loading