From 3caa17b468e50c885f56e7872200e9a76815462b Mon Sep 17 00:00:00 2001 From: Charles Gleason <36055314+crgl@users.noreply.github.com> Date: Tue, 28 Jan 2020 11:27:31 -0500 Subject: [PATCH] Format safety comment as per tidy Co-Authored-By: Ashley Mannix --- src/liballoc/collections/btree/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liballoc/collections/btree/map.rs b/src/liballoc/collections/btree/map.rs index 12174ffcbfa..58cb561938a 100644 --- a/src/liballoc/collections/btree/map.rs +++ b/src/liballoc/collections/btree/map.rs @@ -249,7 +249,7 @@ impl BTreeClone for BTreeMap { // 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);