&self -> Rc<Self> in RPC methods #1569
Annotations
10 warnings
|
Run actions-rs-plus/clippy-check@v2:
target/debug/build/pubsub-0c875fc9a4ebd7b3/out/pubsub_capnp.rs#L1138
warning: type parameter `T` goes unused in function definition
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-0c875fc9a4ebd7b3/out/pubsub_capnp.rs:1138:35
|
1138 | 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
|
|
Run actions-rs-plus/clippy-check@v2:
target/debug/build/pubsub-0c875fc9a4ebd7b3/out/pubsub_capnp.rs#L1135
warning: type parameter `T` goes unused in function definition
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-0c875fc9a4ebd7b3/out/pubsub_capnp.rs:1135:30
|
1135 | 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
|
|
Run actions-rs-plus/clippy-check@v2:
target/debug/build/pubsub-0c875fc9a4ebd7b3/out/pubsub_capnp.rs#L962
warning: type parameter `T` goes unused in function definition
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-0c875fc9a4ebd7b3/out/pubsub_capnp.rs:962:35
|
962 | 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
|
|
Run actions-rs-plus/clippy-check@v2:
target/debug/build/pubsub-0c875fc9a4ebd7b3/out/pubsub_capnp.rs#L633
warning: type parameter `T` goes unused in function definition
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-0c875fc9a4ebd7b3/out/pubsub_capnp.rs:633:35
|
633 | 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
|
|
Run actions-rs-plus/clippy-check@v2:
target/debug/build/pubsub-0c875fc9a4ebd7b3/out/pubsub_capnp.rs#L627
warning: type parameter `T` goes unused in function definition
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-0c875fc9a4ebd7b3/out/pubsub_capnp.rs:627:30
|
627 | 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
|
|
Run actions-rs-plus/clippy-check@v2:
target/debug/build/pubsub-0c875fc9a4ebd7b3/out/pubsub_capnp.rs#L414
warning: type parameter `T` goes unused in function definition
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-0c875fc9a4ebd7b3/out/pubsub_capnp.rs:414:35
|
414 | 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
|
|
Run actions-rs-plus/clippy-check@v2:
target/debug/build/pubsub-0c875fc9a4ebd7b3/out/pubsub_capnp.rs#L88
warning: this match could be replaced by its body itself
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-0c875fc9a4ebd7b3/out/pubsub_capnp.rs:88:7
|
88 | / match method_id {
89 | | _ => { ::capnp::capability::DispatchCallResult::new(::capnp::capability::Promise::err(::capnp::Error::unimplemented("Method not i...
90 | | }
| |_______^ 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
|
|
Run actions-rs-plus/clippy-check@v2:
capnp-rpc/examples/calculator/server.rs#L118
warning: this `RefCell` reference is held across an await point
--> capnp-rpc/examples/calculator/server.rs:118:13
|
118 | / self.body
119 | | .borrow_mut()
| |_____________________________^
|
= help: ensure the reference is dropped before calling `await`
note: these are all the await points this reference is held through
--> capnp-rpc/examples/calculator/server.rs:124:10
|
124 | .await?;
| ^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref
= note: `#[warn(clippy::await_holding_refcell_ref)]` on by default
|
|
Run actions-rs-plus/clippy-check@v2:
target/debug/build/fill_random_values-b1928c67eb7b8737/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-b1928c67eb7b8737/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
|
|
Run actions-rs-plus/clippy-check@v2:
target/debug/build/fill_random_values-b1928c67eb7b8737/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-b1928c67eb7b8737/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
|
Loading