diff options
| author | Cristian Carlesso <[email protected]> | 2017-04-30 12:51:23 +0100 |
|---|---|---|
| committer | Cristian Carlesso <[email protected]> | 2017-04-30 12:51:23 +0100 |
| commit | e617cba56763674330ce286598776bc18f59598b (patch) | |
| tree | 41081ac41025775f516a37ecba2ea6e1815ef42e /ctr-std/src/collections | |
| parent | Merge pull request #29 from FenrirWolf/condvar_patch (diff) | |
| download | ctru-rs-e617cba56763674330ce286598776bc18f59598b.tar.xz ctru-rs-e617cba56763674330ce286598776bc18f59598b.zip | |
Make ctru-rs compile again
Diffstat (limited to 'ctr-std/src/collections')
| -rw-r--r-- | ctr-std/src/collections/hash/table.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctr-std/src/collections/hash/table.rs b/ctr-std/src/collections/hash/table.rs index 4fd4abf..ddf975e 100644 --- a/ctr-std/src/collections/hash/table.rs +++ b/ctr-std/src/collections/hash/table.rs @@ -975,7 +975,7 @@ impl<'a, K, V> Iterator for Drain<'a, K, V> { fn next(&mut self) -> Option<(SafeHash, K, V)> { self.iter.next().map(|bucket| { unsafe { - (**self.table).size -= 1; + (*self.table.as_mut_ptr()).size -= 1; let (k, v) = ptr::read(bucket.pair); (SafeHash { hash: ptr::replace(bucket.hash, EMPTY_BUCKET) }, k, v) } |