diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-01-07 12:27:17 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-07 12:27:17 +0000 |
commit | 7967ce85cfc5fc2b1996425b44f2a45d0841c8ff (patch) | |
tree | 4495b9de7ea6c8e9dd9fd347d42517e9dee511fa /crates/assists/src/handlers/replace_derive_with_manual_impl.rs | |
parent | c3e9fb183bc287d83b97b776edc87c54d18d1a73 (diff) | |
parent | 72b9a4fbd3c12f3250b9157a1d44230e04ec8b22 (diff) |
Merge #7184
7184: Changes Cursor Marker To $0 r=matklad a=kevaundray
Co-authored-by: Kevaundray Wedderburn <[email protected]>
Diffstat (limited to 'crates/assists/src/handlers/replace_derive_with_manual_impl.rs')
-rw-r--r-- | crates/assists/src/handlers/replace_derive_with_manual_impl.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/crates/assists/src/handlers/replace_derive_with_manual_impl.rs b/crates/assists/src/handlers/replace_derive_with_manual_impl.rs index cb7a5c104..bd4c1c806 100644 --- a/crates/assists/src/handlers/replace_derive_with_manual_impl.rs +++ b/crates/assists/src/handlers/replace_derive_with_manual_impl.rs | |||
@@ -22,7 +22,7 @@ use crate::{ | |||
22 | // | 22 | // |
23 | // ``` | 23 | // ``` |
24 | // # trait Debug { fn fmt(&self, f: &mut Formatter) -> Result<()>; } | 24 | // # trait Debug { fn fmt(&self, f: &mut Formatter) -> Result<()>; } |
25 | // #[derive(Deb<|>ug, Display)] | 25 | // #[derive(Deb$0ug, Display)] |
26 | // struct S; | 26 | // struct S; |
27 | // ``` | 27 | // ``` |
28 | // -> | 28 | // -> |
@@ -219,7 +219,7 @@ mod fmt { | |||
219 | } | 219 | } |
220 | } | 220 | } |
221 | 221 | ||
222 | #[derive(Debu<|>g)] | 222 | #[derive(Debu$0g)] |
223 | struct Foo { | 223 | struct Foo { |
224 | bar: String, | 224 | bar: String, |
225 | } | 225 | } |
@@ -261,7 +261,7 @@ mod foo { | |||
261 | } | 261 | } |
262 | } | 262 | } |
263 | 263 | ||
264 | #[derive(<|>Bar)] | 264 | #[derive($0Bar)] |
265 | struct Foo { | 265 | struct Foo { |
266 | bar: String, | 266 | bar: String, |
267 | } | 267 | } |
@@ -300,7 +300,7 @@ impl foo::Bar for Foo { | |||
300 | check_assist( | 300 | check_assist( |
301 | replace_derive_with_manual_impl, | 301 | replace_derive_with_manual_impl, |
302 | " | 302 | " |
303 | #[derive(Debu<|>g)] | 303 | #[derive(Debu$0g)] |
304 | struct Foo { | 304 | struct Foo { |
305 | bar: String, | 305 | bar: String, |
306 | } | 306 | } |
@@ -322,7 +322,7 @@ impl Debug for Foo { | |||
322 | check_assist( | 322 | check_assist( |
323 | replace_derive_with_manual_impl, | 323 | replace_derive_with_manual_impl, |
324 | " | 324 | " |
325 | #[derive(Debug<|>)] | 325 | #[derive(Debug$0)] |
326 | pub struct Foo { | 326 | pub struct Foo { |
327 | bar: String, | 327 | bar: String, |
328 | } | 328 | } |
@@ -344,7 +344,7 @@ impl Debug for Foo { | |||
344 | check_assist( | 344 | check_assist( |
345 | replace_derive_with_manual_impl, | 345 | replace_derive_with_manual_impl, |
346 | " | 346 | " |
347 | #[derive(Display, Debug<|>, Serialize)] | 347 | #[derive(Display, Debug$0, Serialize)] |
348 | struct Foo {} | 348 | struct Foo {} |
349 | ", | 349 | ", |
350 | " | 350 | " |
@@ -363,7 +363,7 @@ impl Debug for Foo { | |||
363 | check_assist_not_applicable( | 363 | check_assist_not_applicable( |
364 | replace_derive_with_manual_impl, | 364 | replace_derive_with_manual_impl, |
365 | " | 365 | " |
366 | #[derive(<|>)] | 366 | #[derive($0)] |
367 | struct Foo {} | 367 | struct Foo {} |
368 | ", | 368 | ", |
369 | ) | 369 | ) |
@@ -374,7 +374,7 @@ struct Foo {} | |||
374 | check_assist_not_applicable( | 374 | check_assist_not_applicable( |
375 | replace_derive_with_manual_impl, | 375 | replace_derive_with_manual_impl, |
376 | " | 376 | " |
377 | #[derive<|>(Debug)] | 377 | #[derive$0(Debug)] |
378 | struct Foo {} | 378 | struct Foo {} |
379 | ", | 379 | ", |
380 | ); | 380 | ); |
@@ -382,7 +382,7 @@ struct Foo {} | |||
382 | check_assist_not_applicable( | 382 | check_assist_not_applicable( |
383 | replace_derive_with_manual_impl, | 383 | replace_derive_with_manual_impl, |
384 | " | 384 | " |
385 | #[derive(Debug)<|>] | 385 | #[derive(Debug)$0] |
386 | struct Foo {} | 386 | struct Foo {} |
387 | ", | 387 | ", |
388 | ) | 388 | ) |
@@ -393,7 +393,7 @@ struct Foo {} | |||
393 | check_assist_not_applicable( | 393 | check_assist_not_applicable( |
394 | replace_derive_with_manual_impl, | 394 | replace_derive_with_manual_impl, |
395 | " | 395 | " |
396 | #[allow(non_camel_<|>case_types)] | 396 | #[allow(non_camel_$0case_types)] |
397 | struct Foo {} | 397 | struct Foo {} |
398 | ", | 398 | ", |
399 | ) | 399 | ) |