Update Rust crate clap to v4.5.20 #104
Annotations
9 errors
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
|
test
Process completed with exit code 101.
|