Format safety comment as per tidy

Co-Authored-By: Ashley Mannix <ashleymannix@live.com.au>
This commit is contained in:
Charles Gleason 2020-01-28 11:27:31 -05:00 committed by GitHub
parent 8651aa066f
commit 3caa17b468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,7 +249,7 @@ impl<K: Clone + Ord, V: Clone> BTreeClone for BTreeMap<K, V> {
// the BTree invariants are maintained at the end of the loop
while siter.front != siter.back {
if let Some((ok, ov)) = oiter.next() {
// This is safe because the `siter.front != siter.back` check
// SAFETY: This is safe because the `siter.front != siter.back` check
// ensures that `siter` is nonempty
let (sk, sv) = unsafe { siter.next_unchecked() };
sk.clone_from(ok);