diasurgical / devilution-comparer

Small helper tool to aid comparing functions between devilution and the original binary
The Unlicense
21 stars 9 forks source link

Compiler warning about unhandled errors #17

Closed 7i closed 5 years ago

7i commented 5 years ago

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
seritools commented 5 years ago

Thanks for the info, added the missing ?s :)