Skip to content

The "unused borrow that must be used" warning. #31

@A1-Triard

Description

@A1-Triard

STR: Try to build and test the string-xml crate using nightly Rust.
AR:
The following warning occuries:

warning: unused borrow that must be used
 --> test-suite\tests\issue_5.rs:3:10
  |
3 | #[derive(XmlWrite, XmlRead, PartialEq, Debug)]
  |          ^^^^^^^^ the borrow produces a value
  |
  = note: `#[warn(unused_must_use)]` on by default
  = note: this warning originates in the derive macro `XmlWrite` (in Nightly builds, run with -Z macro-backtrace for more info)

ER: No warnings.

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