Stream: git-wasmtime

Topic: wasmtime / PR #3125 Fix unused borrow warning


view this post on Zulip Wasmtime GitHub notifications bot (Jul 28 2021 at 22:08):

abrown opened PR #3125 from fix-warning to main:

#[warn(unused_must_use)] is on, prompting a compiler warning like:
"unused borrow that must be used".

warning: unused borrow that must be used
   --> crates/debug/src/transform/expression.rs:438:29
    |
438 | / ...                   &code_buf[new_from - 2..new_from]
439 | | ...                       .copy_from_slice(&(new_diff as i16).to_le_bytes());
    | |____________________________________________________________________________^
    |
    = note: `#[warn(unused_must_use)]` on by default

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jul 28 2021 at 22:12):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 28 2021 at 22:39):

abrown merged PR #3125.


Last updated: Oct 23 2024 at 20:03 UTC