diff options
| author | Josh Stone <jistone@redhat.com> | 2020-04-17 11:36:56 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2020-04-17 11:36:56 -0700 |
| commit | 7c4ca59f4b10d20f0f3e902f847641311abb093c (patch) | |
| tree | 3046706957c513a61423ce7b6720611a87dbcbb9 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 8d67f576b56e8fc98a31123e5963f8d00e40611c (diff) | |
| download | rust-7c4ca59f4b10d20f0f3e902f847641311abb093c.tar.gz rust-7c4ca59f4b10d20f0f3e902f847641311abb093c.zip | |
Lint must_use on mem::replace
This adds a hint on `mem::replace`, "if you don't need the old value, you can just assign the new value directly". This is in similar spirit to the `must_use` on `ManuallyDrop::take`.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
