Skip to content

Initial support of listen() #301

Initial support of listen()

Initial support of listen() #301

Triggered via push November 14, 2024 02:18
Status Failure
Total duration 3m 14s
Artifacts

rust-build.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 4 warnings
build_default_macos
Process completed with exit code 101.
non-exhaustive patterns: `Ok(rpc_common::ReplyResult::HostSuccess(_))` not covered: crates/console-host/src/main.rs#L76
error[E0004]: non-exhaustive patterns: `Ok(rpc_common::ReplyResult::HostSuccess(_))` not covered --> crates/console-host/src/main.rs:76:11 | 76 | match rpc_client.make_rpc_call( | ___________^ 77 | | client_id, 78 | | HostClientToDaemonMessage::ConnectionEstablish("console".to_string()), 79 | | ) { | |_____^ pattern `Ok(rpc_common::ReplyResult::HostSuccess(_))` not covered | note: `std::result::Result<rpc_common::ReplyResult, rpc_common::RpcError>` defined here --> /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/result.rs:527:1 ::: /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/result.rs:531:5 | = note: not covered = note: the matched value is of type `std::result::Result<rpc_common::ReplyResult, rpc_common::RpcError>` help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown | 94 ~ }, 95 + Ok(rpc_common::ReplyResult::HostSuccess(_)) => todo!() |
this enum variant takes 5 arguments but 2 arguments were supplied: crates/console-host/src/main.rs#L322
error[E0061]: this enum variant takes 5 arguments but 2 arguments were supplied --> crates/console-host/src/main.rs:322:21 | 322 | HostClientToDaemonMessage::ClientPong( | _____________________^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- 323 | | broadcast_client_token.clone(), 324 | | SystemTime::now(), 325 | | ), | |_____________________- three arguments of type `moor_values::Objid`, `rpc_common::HostType`, and `std::net::SocketAddr` are missing | note: tuple variant defined here --> /home/runner/work/moor/moor/crates/rpc-common/src/lib.rs:134:5 | 134 | ClientPong(ClientToken, SystemTime, Objid, HostType, SocketAddr), | ^^^^^^^^^^ help: provide the arguments | 322 | HostClientToDaemonMessage::ClientPong(broadcast_client_token.clone(), SystemTime::now(), /* moor_values::Objid */, /* rpc_common::HostType */, /* std::net::SocketAddr */), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
this enum variant takes 4 arguments but 3 arguments were supplied: crates/console-host/src/main.rs#L182
error[E0061]: this enum variant takes 4 arguments but 3 arguments were supplied --> crates/console-host/src/main.rs:182:9 | 182 | HostClientToDaemonMessage::Command( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 185 | line.to_string(), | ---------------- argument #3 of type `moor_values::Objid` is missing | note: tuple variant defined here --> /home/runner/work/moor/moor/crates/rpc-common/src/lib.rs:114:5 | 114 | Command(ClientToken, AuthToken, Objid, String), | ^^^^^^^ help: provide the argument | 182 | HostClientToDaemonMessage::Command(client_token.clone(), auth_token.clone(), /* moor_values::Objid */, line.to_string()), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
this enum variant takes 4 arguments but 3 arguments were supplied: crates/console-host/src/main.rs#L108
error[E0061]: this enum variant takes 4 arguments but 3 arguments were supplied --> crates/console-host/src/main.rs:108:9 | 108 | HostClientToDaemonMessage::LoginCommand( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 109 | token, 110 | / vec![ 111 | | "connect".to_string(), 112 | | username.to_string(), 113 | | password.to_string(), 114 | | ], | |_____________- argument #2 of type `moor_values::Objid` is missing | note: tuple variant defined here --> /home/runner/work/moor/moor/crates/rpc-common/src/lib.rs:108:5 | 108 | LoginCommand(ClientToken, Objid, Vec<String>, bool /* attach? */), | ^^^^^^^^^^^^ help: provide the argument | 108 ~ HostClientToDaemonMessage::LoginCommand(token, /* moor_values::Objid */, vec![ 109 + "connect".to_string(), 110 + username.to_string(), 111 + password.to_string(), 112 ~ ], true), |
build_default_linux
Process completed with exit code 101.
clippy_check
Clippy had exited with the 101 exit code
build_all_linux
Process completed with exit code 101.
very complex type used. Consider factoring parts into `type` definitions: crates/kernel/src/tasks/task.rs#L572
warning: very complex type used. Consider factoring parts into `type` definitions --> crates/kernel/src/tasks/task.rs:572:6 | 572 | ) -> Result<Option<((Bytes, VerbDef), Objid)>, CommandError> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = 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
length comparison to one: crates/kernel/src/builtins/bf_server.rs#L831
warning: length comparison to one --> crates/kernel/src/builtins/bf_server.rs:831:8 | 831 | if bf_args.args.len() < 1 || bf_args.args.len() > 2 { | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `bf_args.args.is_empty()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero = note: `#[warn(clippy::len_zero)]` on by default
clippy_check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
clippy_check
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/