Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile project #438

Open
jeremiemartel opened this issue Oct 30, 2023 · 0 comments
Open

Cannot compile project #438

jeremiemartel opened this issue Oct 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jeremiemartel
Copy link

jeremiemartel commented Oct 30, 2023

Describe the bug
Cannot compile project using command in README: cargo build --release --features csml_engine/mongo

error:

error[E0061]: this function takes 5 arguments but 3 arguments were supplied
   --> bindings/ios/src/lib.rs:842:11
    |
842 |     match csml_engine::get_client_messages(&client, params.limit, params.pagination_key) {
    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---------------------------------------------- two arguments of type `std::option::Option<i64>` and `std::option::Option<i64>` are missing
    |
note: function defined here
   --> /tmp/csml-engine/csml_engine/src/lib.rs:209:8
    |
209 | pub fn get_client_messages(
    |        ^^^^^^^^^^^^^^^^^^^
help: provide the arguments
    |
842 |     match csml_engine::get_client_messages(&client, params.limit, params.pagination_key, /* std::option::Option<i64> */, /* std::option::Option<i64> */) {
    |                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For more information about this error, try `rustc --explain E0061`.
error: could not compile `csmllib` due to previous error
warning: build failed, waiting for other jobs to finish...
warning: `csml_android` (lib) generated 5 warnings

To Reproduce
git clone https://github.com/CSML-by-Clevy/csml-engine
cd csml-engine
cargo build

Expected behavior

Additional context

@jeremiemartel jeremiemartel added the bug Something isn't working label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant