diff options
Diffstat (limited to 'crates/ide_assists/src/handlers/early_return.rs')
-rw-r--r-- | crates/ide_assists/src/handlers/early_return.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/crates/ide_assists/src/handlers/early_return.rs b/crates/ide_assists/src/handlers/early_return.rs index 2148df7c8..c66f8c05d 100644 --- a/crates/ide_assists/src/handlers/early_return.rs +++ b/crates/ide_assists/src/handlers/early_return.rs | |||
@@ -204,7 +204,7 @@ mod tests { | |||
204 | if$0 true { | 204 | if$0 true { |
205 | foo(); | 205 | foo(); |
206 | 206 | ||
207 | //comment | 207 | // comment |
208 | bar(); | 208 | bar(); |
209 | } | 209 | } |
210 | } | 210 | } |
@@ -217,7 +217,7 @@ mod tests { | |||
217 | } | 217 | } |
218 | foo(); | 218 | foo(); |
219 | 219 | ||
220 | //comment | 220 | // comment |
221 | bar(); | 221 | bar(); |
222 | } | 222 | } |
223 | "#, | 223 | "#, |
@@ -234,7 +234,7 @@ mod tests { | |||
234 | if$0 let Some(n) = n { | 234 | if$0 let Some(n) = n { |
235 | foo(n); | 235 | foo(n); |
236 | 236 | ||
237 | //comment | 237 | // comment |
238 | bar(); | 238 | bar(); |
239 | } | 239 | } |
240 | } | 240 | } |
@@ -248,7 +248,7 @@ mod tests { | |||
248 | }; | 248 | }; |
249 | foo(n); | 249 | foo(n); |
250 | 250 | ||
251 | //comment | 251 | // comment |
252 | bar(); | 252 | bar(); |
253 | } | 253 | } |
254 | "#, | 254 | "#, |
@@ -288,7 +288,7 @@ mod tests { | |||
288 | if$0 let Some(n) = n { | 288 | if$0 let Some(n) = n { |
289 | foo(n); | 289 | foo(n); |
290 | 290 | ||
291 | //comment | 291 | // comment |
292 | bar(); | 292 | bar(); |
293 | } | 293 | } |
294 | } | 294 | } |
@@ -302,7 +302,7 @@ mod tests { | |||
302 | }; | 302 | }; |
303 | foo(n); | 303 | foo(n); |
304 | 304 | ||
305 | //comment | 305 | // comment |
306 | bar(); | 306 | bar(); |
307 | } | 307 | } |
308 | "#, | 308 | "#, |
@@ -319,7 +319,7 @@ mod tests { | |||
319 | if$0 let Some(mut n) = n { | 319 | if$0 let Some(mut n) = n { |
320 | foo(n); | 320 | foo(n); |
321 | 321 | ||
322 | //comment | 322 | // comment |
323 | bar(); | 323 | bar(); |
324 | } | 324 | } |
325 | } | 325 | } |
@@ -333,7 +333,7 @@ mod tests { | |||
333 | }; | 333 | }; |
334 | foo(n); | 334 | foo(n); |
335 | 335 | ||
336 | //comment | 336 | // comment |
337 | bar(); | 337 | bar(); |
338 | } | 338 | } |
339 | "#, | 339 | "#, |
@@ -350,7 +350,7 @@ mod tests { | |||
350 | if$0 let Some(ref n) = n { | 350 | if$0 let Some(ref n) = n { |
351 | foo(n); | 351 | foo(n); |
352 | 352 | ||
353 | //comment | 353 | // comment |
354 | bar(); | 354 | bar(); |
355 | } | 355 | } |
356 | } | 356 | } |
@@ -364,7 +364,7 @@ mod tests { | |||
364 | }; | 364 | }; |
365 | foo(n); | 365 | foo(n); |
366 | 366 | ||
367 | //comment | 367 | // comment |
368 | bar(); | 368 | bar(); |
369 | } | 369 | } |
370 | "#, | 370 | "#, |