BUG: Fix "unused unsafe block" warning
This warning was only visible on stable, not nightly, which seems like a bug.
This commit is contained in:
+1
-3
@@ -841,9 +841,7 @@ impl<A: Array> Extend<A::Item> for ArrayVec<A> {
|
||||
value: self,
|
||||
data: len,
|
||||
f: |&len, self_| {
|
||||
unsafe {
|
||||
self_.set_len(len)
|
||||
}
|
||||
self_.set_len(len)
|
||||
}
|
||||
};
|
||||
for elt in iter.into_iter().take(take) {
|
||||
|
||||
Reference in New Issue
Block a user