Skip to content

E0061 error during compilation #47

Description

@kreha1

I was trying to use this crate inside my project. With no other dependencies, building the project results with An invalid number of arguments was passed when calling a function. error.

Rust version

rustc 1.56.1 (59eed8a2a 2021-11-01)

Error log

error[E0061]: this function takes 3 arguments but 2 arguments were supplied
   --> src/app.rs:135:24
    |
135 |                 writer.write_flatten_text("Application", val)?;
    |                        ^^^^^^^^^^^^^^^^^^ -------------  --- supplied 2 arguments
    |                        |
    |                        expected 3 arguments
    |
note: associated function defined here
   --> $HOME/.cargo/registry/src/github.com-1ecc6299db9ec823/strong-xml-0.6.3/src/xml_writer.rs:39:12
    |
39  |     pub fn write_flatten_text(&mut self, tag: &str, content: &str, is_cdata: bool) -> Result<()> {
    |            ^^^^^^^^^^^^^^^^^^

This error is reported 23 times for different arguments, always missing the last one.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions