Skip to content

Commit 40614ac

Browse files
committed
Fix tests that are broken on GNUStep nightly
1 parent dc9a9bc commit 40614ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/icrate/src/Foundation/additions/enumerator.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ impl<'a, C: NSFastEnumeration2 + ?Sized> Iterator for NSFastEnumerator2<'a, C> {
157157
None
158158
} else {
159159
unsafe {
160-
let obj = *self.ptr;
160+
// TODO
161+
let obj = self.ptr.read_unaligned();
161162
self.ptr = self.ptr.offset(1);
162163
Some(obj.as_ref().unwrap_unchecked())
163164
}

0 commit comments

Comments
 (0)