Skip to content

[Error] could not compile rastra. This function takes 7 arguments but 6 arguments were supplied #6

Open
@Eptagone

Description

Hi, I'm trying to check this project but I'm getting the followging error while compiling with cargo build.

warning: unused import: `LE`
  --> src/main.rs:11:28
   |
11 | use bedrockrs::core::int::{LE, VAR};
   |                            ^^
   |
   = note: `#[warn(unused_imports)]` on by default

error[E0061]: this function takes 7 arguments but 6 arguments were supplied
  --> src/main.rs:48:24
   |
48 |     let mut listener = listener::Listener::new_raknet(
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
51 |         100,
   |         --- argument #3 of type `std::string::String` is missing
   |
note: associated function defined here
  --> /home/eptadot/.cargo/git/checkouts/bedrockrs-cdc582742ae1671f/b3baa1d/crates/proto/src/listener.rs:23:18
   |
23 |     pub async fn new_raknet(
   |                  ^^^^^^^^^^
help: provide the argument
   |
48 ~     let mut listener = listener::Listener::new_raknet(_config.display_name, _config.display_sub_name, /* std::string::String */, 0, 100, SocketAddr::V4(SocketAddrV4::new(
49 +             Ipv4Addr::from_str("127.0.0.1").unwrap(),
50 +             19132,
51 +         )), false)
   |

For more information about this error, try `rustc --explain E0061`.
warning: `rastra` (bin "rastra") generated 1 warning
error: could not compile `rastra` (bin "rastra") due to 1 previous error; 1 warning emitted

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions