about summary refs log tree commit diff
path: root/src/liballoc/vec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/liballoc/vec.rs')
-rw-r--r--src/liballoc/vec.rs7
1 files changed, 3 insertions, 4 deletions
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<T: PartialEq> Vec<T> {
     }
 }
 
-impl <T> Vec<T> {
-
+impl<T> Vec<T> {
     /// Removes the first instance of `item` from the vector if the item exists.
     ///
     /// # Examples
@@ -1707,12 +1706,12 @@ impl <T> Vec<T> {
 
     #[unstable(feature = "vec_remove_item", reason = "recently added", issue = "40062")]
     pub fn remove_item<V>(&mut self, item: &V) -> Option<T>
-    where T: PartialEq<V>
+    where
+        T: PartialEq<V>,
     {
         let pos = self.iter().position(|x| *x == *item)?;
         Some(self.remove(pos))
     }
-
 }
 
 ////////////////////////////////////////////////////////////////////////////////