Skip to content

Compiler warning about unhandled errors #17

@7i

Description

@7i

When compiling with Rust version 1.33.0.

   Compiling devilution-comparer v0.3.5 (devilution-comparer)
warning: unused `std::result::Result` that must be used
  --> src/generate_full.rs:57:25
   |
57 | /                         writeln!(
58 | |                             stdout_lock,
59 | |                             "Note: Skipping '{}' because no size was defined.",
60 | |                             func.name
61 | |                         );
   | |__________________________^
   |
   = note: #[warn(unused_must_use)] on by default
   = note: this `Result` may be an `Err` variant, which should be handled
   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

warning: unused `std::result::Result` that must be used
   --> src/generate_full.rs:126:21
    |
126 | /                     writeln!(
127 | |                         stdout_lock,
128 | |                         "WARN: Function '{}' was not found in the PDB.",
129 | |                         func.name
130 | |                     );
    | |______________________^
    |
    = note: this `Result` may be an `Err` variant, which should be handled
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

warning: unused `std::result::Result` that must be used
   --> src/generate_full.rs:134:17
    |
134 | /                 writeln!(
135 | |                     stdout_lock,
136 | |                     "WARN: Function '{}' was not found in the config.",
137 | |                     func.1.name
138 | |                 );
    | |__________________^
    |
    = note: this `Result` may be an `Err` variant, which should be handled
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

warning: unused `std::result::Result` that must be used
  --> src/hexformat.rs:17:17
   |
17 |                 write!(f, "+");
   |                 ^^^^^^^^^^^^^^^
   |
   = note: this `Result` may be an `Err` variant, which should be handled
   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

warning: unused `std::result::Result` that must be used
  --> src/hexformat.rs:20:17
   |
20 |                 write!(f, "0x");
   |                 ^^^^^^^^^^^^^^^^
   |
   = note: this `Result` may be an `Err` variant, which should be handled
   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

warning: unused `std::result::Result` that must be used
  --> src/hexformat.rs:24:13
   |
24 |             write!(f, "-");
   |             ^^^^^^^^^^^^^^^
   |
   = note: this `Result` may be an `Err` variant, which should be handled
   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

warning: unused `std::result::Result` that must be used
  --> src/hexformat.rs:26:17
   |
26 |                 write!(f, "0x");
   |                 ^^^^^^^^^^^^^^^^
   |
   = note: this `Result` may be an `Err` variant, which should be handled
   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

    Finished dev [unoptimized + debuginfo] target(s) in 4m 03s

Metadata

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