Add snippet support for some assists

This commit is contained in:
Aleksey Kladov 2020-05-17 14:21:24 +02:00
parent c847c079fd
commit fa2e5299c3
5 changed files with 71 additions and 60 deletions

View file

@ -17,7 +17,7 @@ struct S;
struct S;
impl Debug for S {
$0
}
```
@ -33,7 +33,7 @@ struct Point {
}
// AFTER
#[derive()]
#[derive($0)]
struct Point {
x: u32,
y: u32,
@ -105,16 +105,16 @@ Adds a new inherent impl for a type.
```rust
// BEFORE
struct Ctx<T: Clone> {
data: T,┃
data: T,┃
}
// AFTER
struct Ctx<T: Clone> {
data: T,
data: T,
}
impl<T: Clone> Ctx<T> {
$0
}
```