From e617cba56763674330ce286598776bc18f59598b Mon Sep 17 00:00:00 2001 From: Cristian Carlesso Date: Sun, 30 Apr 2017 12:51:23 +0100 Subject: Make ctru-rs compile again --- ctr-std/src/collections/hash/table.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ctr-std/src/collections') 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) } -- cgit v1.2.3