omerbenamram / evtx

A Fast (and safe) parser for the Windows XML Event Log (EVTX) format
Apache License 2.0
625 stars 61 forks source link

Warnings will become errors #212

Open fabaff opened 2 years ago

fabaff commented 2 years ago

Came up during a quick check:

[...]
   = note: this warning originates in the macro `try_read` (in Nightly builds, run with -Z macro-backtrace for more info)

warning: trailing semicolon in macro used in expression position
  --> src/macros.rs:49:69
   |
49 |             .map_err(|e| capture_context!($cursor, e, "u16", $name));
   |                                                                     ^
   |
  ::: src/utils/time.rs:15:24
   |
15 |     let milliseconds = try_read!(r, u16)?;
   |                        ----------------- in this macro invocation
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
   = note: this warning originates in the macro `try_read` (in Nightly builds, run with -Z macro-backtrace for more info)

warning: `evtx` (lib) generated 88 warnings
    Finished release [optimized] target(s) in 49.87s