Skip to content

fill in unimplemented logic in resolve_exported_promise() #1326

fill in unimplemented logic in resolve_exported_promise()

fill in unimplemented logic in resolve_exported_promise() #1326

Triggered via pull request September 22, 2024 14:52
Status Success
Total duration 6m 24s
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-f26de0fe3415b5b5/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-f26de0fe3415b5b5/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-f26de0fe3415b5b5/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-f26de0fe3415b5b5/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
this `RefCell` reference is held across an await point: capnp-rpc/src/rpc.rs#L1312
warning: this `RefCell` reference is held across an await point --> capnp-rpc/src/rpc.rs:1312:25 | 1312 | let mut exports = connection_state.exports.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/src/rpc.rs:1368:34 | 1368 | ... .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
this `RefCell` reference is held across an await point: capnp-rpc/src/rpc.rs#L1343
warning: this `RefCell` reference is held across an await point --> capnp-rpc/src/rpc.rs:1343:33 | 1343 | ... let mut exports_by_cap = connection_state.exports_by_cap.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/src/rpc.rs:1368:34 | 1368 | ... .await; | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref
this match could be replaced by its body itself: target/debug/build/pubsub-110237e36b1edff1/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-110237e36b1edff1/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
type parameter `T` goes unused in function definition: target/debug/build/pubsub-110237e36b1edff1/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-110237e36b1edff1/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-110237e36b1edff1/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-110237e36b1edff1/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
type parameter `T` goes unused in function definition: target/debug/build/pubsub-110237e36b1edff1/out/pubsub_capnp.rs#L631
warning: type parameter `T` goes unused in function definition --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-110237e36b1edff1/out/pubsub_capnp.rs:631:35 | 631 | 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-110237e36b1edff1/out/pubsub_capnp.rs#L959
warning: type parameter `T` goes unused in function definition --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-110237e36b1edff1/out/pubsub_capnp.rs:959:35 | 959 | 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-110237e36b1edff1/out/pubsub_capnp.rs#L1132
warning: type parameter `T` goes unused in function definition --> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/pubsub-110237e36b1edff1/out/pubsub_capnp.rs:1132:30 | 1132 | 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