diff options
| author | Josh Stone <jistone@redhat.com> | 2020-04-17 13:59:14 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2020-04-17 13:59:14 -0700 |
| commit | ccecae5fdd27fa7695fd45c98ff755029a750eb7 (patch) | |
| tree | 805b8f0ac90ac90ac76588663dbf98dc7bd0d689 /src/libstd/thread | |
| parent | 7c4ca59f4b10d20f0f3e902f847641311abb093c (diff) | |
| download | rust-ccecae5fdd27fa7695fd45c98ff755029a750eb7.tar.gz rust-ccecae5fdd27fa7695fd45c98ff755029a750eb7.zip | |
Fix unused results from mem::replace
Diffstat (limited to 'src/libstd/thread')
| -rw-r--r-- | src/libstd/thread/local.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/thread/local.rs b/src/libstd/thread/local.rs index 29e99c0afd2..094c468a677 100644 --- a/src/libstd/thread/local.rs +++ b/src/libstd/thread/local.rs @@ -301,7 +301,7 @@ mod lazy { // value (an aliasing violation). To avoid setting the "I'm running a // destructor" flag we just use `mem::replace` which should sequence the // operations a little differently and make this safe to call. - mem::replace(&mut *ptr, Some(value)); + let _ = mem::replace(&mut *ptr, Some(value)); // After storing `Some` we want to get a reference to the contents of // what we just stored. While we could use `unwrap` here and it should |
