Closed AndrewSisley closed 8 months ago
Resolves #60
Correctly manages module input buffer memory.
mem::drop(foo) only drops the ManuallyDrop wrapper, it does not drop the underlying value. Was a new linter added in 1.71 to catch this and Keenan spotted it today: https://rust-lang.github.io/rust-clippy/rust-1.71.0/index.html#undropped_manually_drops.
mem::drop(foo)
ManuallyDrop
Note: Use of mem::forget has also been removed, ManualDrop stuff is more descriptive and safer: https://doc.rust-lang.org/std/mem/fn.forget.html
Relevant issue(s)
Resolves #60
Description
Correctly manages module input buffer memory.
mem::drop(foo)
only drops theManuallyDrop
wrapper, it does not drop the underlying value. Was a new linter added in 1.71 to catch this and Keenan spotted it today: https://rust-lang.github.io/rust-clippy/rust-1.71.0/index.html#undropped_manually_drops.Note: Use of mem::forget has also been removed, ManualDrop stuff is more descriptive and safer: https://doc.rust-lang.org/std/mem/fn.forget.html