add dynamic_value::Reader::downcast_struct() #1338
Triggered via pull request
September 23, 2024 16:00
Status
Failure
Total duration
3m 16s
Artifacts
–
Annotations
1 error and 10 warnings
Miri
Process completed with exit code 101.
|
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/capnp-rpc-test-9b3cbfd537a48259/out/test_capnp.rs#L6798
warning: this match could be replaced by its body itself
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/capnp-rpc-test-9b3cbfd537a48259/out/test_capnp.rs:6798:7
|
6798 | / match method_id {
6799 | | _ => { ::capnp::capability::DispatchCallResult::new(::capnp::capability::Promise::err(::capnp::Error::unimplemented("Method not i...
6800 | | }
| |_______^ 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
|
this match could be replaced by its body itself:
target/debug/build/capnp-rpc-test-9b3cbfd537a48259/out/test_capnp.rs#L11517
warning: this match could be replaced by its body itself
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/capnp-rpc-test-9b3cbfd537a48259/out/test_capnp.rs:11517:7
|
11517 | / match method_id {
11518 | | _ => { ::capnp::capability::DispatchCallResult::new(::capnp::capability::Promise::err(::capnp::Error::unimplemented("Method not i...
11519 | | }
| |_______^ 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
|
this match could be replaced by its body itself:
target/debug/build/capnp-rpc-test-9b3cbfd537a48259/out/test_capnp.rs#L17817
warning: this match could be replaced by its body itself
--> /home/runner/work/capnproto-rust/capnproto-rust/target/debug/build/capnp-rpc-test-9b3cbfd537a48259/out/test_capnp.rs:17817:9
|
17817 | / match method_id {
17818 | | _ => { ::capnp::capability::DispatchCallResult::new(::capnp::capability::Promise::err(::capnp::Error::unimplemented("Method not...
17819 | | }
| |_________^ 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
|
type parameters go unused in function definition: Foo, Bar:
target/debug/build/capnpc-test-edition-2021-28ad565b8310cf20/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-2021-28ad565b8310cf20/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-2021-28ad565b8310cf20/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-2021-28ad565b8310cf20/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
|
type parameters go unused in function definition: Foo, Bar, Baz:
target/debug/build/capnpc-test-edition-2021-28ad565b8310cf20/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-2021-28ad565b8310cf20/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
|