File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -133,13 +133,13 @@ fn test_extend_ref() {
133133
134134#[ test]
135135fn test_remove_item ( ) {
136- let mut v = vec ! [ 1 , 2 , 3 ] ;
136+ let mut v = vec ! [ 1 , 2 , 3 ] ;
137137 v. remove_item ( & 1 ) ;
138138
139139 assert_eq ! ( v. len( ) , 2 ) ;
140- assert_eq ! ( v, [ 2 , 3 ] ) ;
140+ assert_eq ! ( v, [ 2 , 3 ] ) ;
141141
142- let mut w = vec ! [ 1 , 2 , 3 ] ;
142+ let mut w = vec ! [ 1 , 2 , 3 ] ;
143143 w. remove_item ( & 4 ) ;
144144
145145 assert_eq ! ( w. len( ) , 3 ) ;
Original file line number Diff line number Diff line change @@ -1690,8 +1690,7 @@ impl<T: PartialEq> Vec<T> {
16901690 }
16911691}
16921692
1693- impl < T > Vec < T > {
1694-
1693+ impl < T > Vec < T > {
16951694 /// Removes the first instance of `item` from the vector if the item exists.
16961695 ///
16971696 /// # Examples
@@ -1707,12 +1706,12 @@ impl <T> Vec<T> {
17071706
17081707 #[ unstable( feature = "vec_remove_item" , reason = "recently added" , issue = "40062" ) ]
17091708 pub fn remove_item < V > ( & mut self , item : & V ) -> Option < T >
1710- where T : PartialEq < V >
1709+ where
1710+ T : PartialEq < V > ,
17111711 {
17121712 let pos = self . iter ( ) . position ( |x| * x == * item) ?;
17131713 Some ( self . remove ( pos) )
17141714 }
1715-
17161715}
17171716
17181717////////////////////////////////////////////////////////////////////////////////
You can’t perform that action at this time.
0 commit comments