File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ mod tests {
124124 }
125125
126126 /// Asserts that name value pairs are written to the buffer in the correct format
127- fn assert_github_output ( buffer : & Vec < u8 > , name : & str ) -> Result < ( String , uuid:: Uuid ) > {
127+ fn assert_github_output ( buffer : & [ u8 ] , name : & str ) -> Result < ( String , uuid:: Uuid ) > {
128128 let delimiter_marker = "<<" ;
129129 let ghadelimiter_prefix = "ghadelimiter_" ;
130130 // Convert the byte buffer to a UTF-8 string and search its lines for the matching prefix.
@@ -134,7 +134,6 @@ mod tests {
134134 // Find the line that begins with the desired value and return the index it was found at
135135 let matching_line = lines
136136 . iter ( )
137- . into_iter ( )
138137 . enumerate ( )
139138 . find ( |l| {
140139 l. 1 . starts_with ( & format ! ( "{name}{delimiter_marker}{ghadelimiter_prefix}" ) )
@@ -155,7 +154,6 @@ mod tests {
155154 // between the start and end
156155 let end_delimiter_line = lines
157156 . iter ( )
158- . into_iter ( )
159157 . enumerate ( )
160158 . find ( |l| l. 1 == & format ! ( "{ghadelimiter_prefix}{delimiter}" ) )
161159 . map ( |l| l. 0 )
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ mod tests {
140140 impl FakeContinuousIntegration {
141141 fn new ( inputs : HashMap < String , String > ) -> Self {
142142 FakeContinuousIntegration {
143- inputs : inputs ,
143+ inputs,
144144 outputs : HashMap :: new ( ) ,
145145 environment : HashMap :: new ( ) ,
146146 masked_values : Vec :: new ( ) ,
You can’t perform that action at this time.
0 commit comments