From 16deaec7f95b7478c9d9538f45ef79a0e4535b0f Mon Sep 17 00:00:00 2001 From: oxalica Date: Mon, 18 Jan 2021 02:11:01 +0800 Subject: [PATCH] Format code --- library/alloc/src/vec/mod.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index 2c510b8b2ae..9fbf06c8e30 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -1411,12 +1411,8 @@ impl Vec { } } - let mut guard = BackshiftOnDrop { - v: self, - processed_len: 0, - deleted_cnt: 0, - original_len: len, - }; + let mut guard = + BackshiftOnDrop { v: self, processed_len: 0, deleted_cnt: 0, original_len: len }; let mut del = 0usize; for i in 0..len {