From f744ea03b46e860decb8672dc032805cbf9df652 Mon Sep 17 00:00:00 2001 From: dylan_DPC Date: Sat, 4 Jan 2020 23:57:34 +0530 Subject: ef em ti ... :P --- src/liballoc/vec.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/liballoc/vec.rs') diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 0825dc228d8..9b48c21728a 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -1690,8 +1690,7 @@ impl Vec { } } -impl Vec { - +impl Vec { /// Removes the first instance of `item` from the vector if the item exists. /// /// # Examples @@ -1707,12 +1706,12 @@ impl Vec { #[unstable(feature = "vec_remove_item", reason = "recently added", issue = "40062")] pub fn remove_item(&mut self, item: &V) -> Option - where T: PartialEq + where + T: PartialEq, { let pos = self.iter().position(|x| *x == *item)?; Some(self.remove(pos)) } - } //////////////////////////////////////////////////////////////////////////////// -- cgit 1.4.1-3-g733a5