Skip to content

Update Rust crate clap to v4.5.20 #101

Update Rust crate clap to v4.5.20

Update Rust crate clap to v4.5.20 #101

Triggered via pull request October 1, 2024 22:41
Status Failure
Total duration 28s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 2 warnings
this function takes 2 arguments but 1 argument was supplied: src/main.rs#L57
error[E0061]: this function takes 2 arguments but 1 argument was supplied --> src/main.rs:57:12 | 57 | Ok(VsockListener::bind(VsockAddr::new( | _____________^^^^^^^^^^^^^^^^^^^-- | | _______________________________| | || 58 | || VMADDR_CID_ANY, 59 | || port as u32, 60 | || ))?) | ||_________-- argument #2 of type `u32` is missing | |__________| | expected `u32`, found `VsockAddr` | note: associated function defined here --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-vsock-0.4.0/src/listener.rs:73:12 | 73 | pub fn bind(cid: u32, port: u32) -> Result<Self> { | ^^^^ help: provide the argument | 57 | Ok(VsockListener::bind(/* u32 */, /* u32 */)?) | ~~~~~~~~~~~~~~~~~~~~~~
this function takes 2 arguments but 1 argument was supplied: src/main.rs#L57
error[E0061]: this function takes 2 arguments but 1 argument was supplied --> src/main.rs:57:12 | 57 | Ok(VsockListener::bind(VsockAddr::new( | _____________^^^^^^^^^^^^^^^^^^^-- | | _______________________________| | || 58 | || VMADDR_CID_ANY, 59 | || port as u32, 60 | || ))?) | ||_________-- argument #2 of type `u32` is missing | |__________| | expected `u32`, found `VsockAddr` | note: associated function defined here --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-vsock-0.4.0/src/listener.rs:73:12 | 73 | pub fn bind(cid: u32, port: u32) -> Result<Self> { | ^^^^ help: provide the argument | 57 | Ok(VsockListener::bind(/* u32 */, /* u32 */)?) | ~~~~~~~~~~~~~~~~~~~~~~
failed to resolve: use of undeclared crate or module `local_ip_address`: src/main.rs#L208
error[E0433]: failed to resolve: use of undeclared crate or module `local_ip_address` --> src/main.rs:208:27 | 208 | let host_ip_address = local_ip_address::local_ip()?.to_string(); | ^^^^^^^^^^^^^^^^ use of undeclared crate or module `local_ip_address`
failed to resolve: use of undeclared crate or module `local_ip_address`: src/main.rs#L208
error[E0433]: failed to resolve: use of undeclared crate or module `local_ip_address` --> src/main.rs:208:27 | 208 | let host_ip_address = local_ip_address::local_ip()?.to_string(); | ^^^^^^^^^^^^^^^^ use of undeclared crate or module `local_ip_address`
this function takes 2 arguments but 1 argument was supplied: src/main.rs#L49
error[E0061]: this function takes 2 arguments but 1 argument was supplied --> src/main.rs:49:12 | 49 | Ok(VsockStream::connect(address).await?) | ^^^^^^^^^^^^^^^^^^^^--------- | || | |expected `u32`, found `VsockAddr` | argument #2 of type `u32` is missing | note: associated function defined here --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-vsock-0.4.0/src/stream.rs:75:18 | 75 | pub async fn connect(cid: u32, port: u32) -> Result<Self> { | ^^^^^^^ help: provide the argument | 49 | Ok(VsockStream::connect(/* u32 */, /* u32 */).await?) | ~~~~~~~~~~~~~~~~~~~~~~
this function takes 2 arguments but 1 argument was supplied: src/main.rs#L49
error[E0061]: this function takes 2 arguments but 1 argument was supplied --> src/main.rs:49:12 | 49 | Ok(VsockStream::connect(address).await?) | ^^^^^^^^^^^^^^^^^^^^--------- | || | |expected `u32`, found `VsockAddr` | argument #2 of type `u32` is missing | note: associated function defined here --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-vsock-0.4.0/src/stream.rs:75:18 | 75 | pub async fn connect(cid: u32, port: u32) -> Result<Self> { | ^^^^^^^ help: provide the argument | 49 | Ok(VsockStream::connect(/* u32 */, /* u32 */).await?) | ~~~~~~~~~~~~~~~~~~~~~~
unresolved import `tokio_vsock::VMADDR_CID_ANY`: src/main.rs#L27
error[E0432]: unresolved import `tokio_vsock::VMADDR_CID_ANY` --> src/main.rs:27:62 | 27 | use tokio_vsock::{VsockAddr, VsockListener, VsockStream, VMADDR_CID_ANY}; | ^^^^^^^^^^^^^^ no `VMADDR_CID_ANY` in the root
unresolved import `tokio_vsock::VMADDR_CID_ANY`: src/main.rs#L27
error[E0432]: unresolved import `tokio_vsock::VMADDR_CID_ANY` --> src/main.rs:27:62 | 27 | use tokio_vsock::{VsockAddr, VsockListener, VsockStream, VMADDR_CID_ANY}; | ^^^^^^^^^^^^^^ no `VMADDR_CID_ANY` in the root
lint
Clippy had exited with the 101 exit code
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@b5b5f21f4797c02da247df37026fcd0a5024aa4d. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@b5b5f21f4797c02da247df37026fcd0a5024aa4d. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/