diff options
author | Aleksey Kladov <[email protected]> | 2019-10-26 15:27:47 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-10-26 15:27:47 +0100 |
commit | 394e4744792f8e36ca1690cb23c2d3dd55556272 (patch) | |
tree | bd13090d770165a128622608baa4e535e5d4a471 /crates/ra_assists/src/assists | |
parent | e3a253d80f124f12b5ec3707216590eb5c0dccff (diff) |
add blank lines for readability
Diffstat (limited to 'crates/ra_assists/src/assists')
5 files changed, 10 insertions, 0 deletions
diff --git a/crates/ra_assists/src/assists/add_derive.rs b/crates/ra_assists/src/assists/add_derive.rs index d3ba634c4..b077acb81 100644 --- a/crates/ra_assists/src/assists/add_derive.rs +++ b/crates/ra_assists/src/assists/add_derive.rs | |||
@@ -8,7 +8,9 @@ use ra_syntax::{ | |||
8 | use crate::{Assist, AssistCtx, AssistId}; | 8 | use crate::{Assist, AssistCtx, AssistId}; |
9 | 9 | ||
10 | // Assist: add_derive | 10 | // Assist: add_derive |
11 | // | ||
11 | // Adds a new `#[derive()]` clause to a struct or enum. | 12 | // Adds a new `#[derive()]` clause to a struct or enum. |
13 | // | ||
12 | // ``` | 14 | // ``` |
13 | // struct Point { | 15 | // struct Point { |
14 | // x: u32, | 16 | // x: u32, |
diff --git a/crates/ra_assists/src/assists/add_explicit_type.rs b/crates/ra_assists/src/assists/add_explicit_type.rs index 33b7bea7f..302b95579 100644 --- a/crates/ra_assists/src/assists/add_explicit_type.rs +++ b/crates/ra_assists/src/assists/add_explicit_type.rs | |||
@@ -7,7 +7,9 @@ use ra_syntax::{ | |||
7 | use crate::{Assist, AssistCtx, AssistId}; | 7 | use crate::{Assist, AssistCtx, AssistId}; |
8 | 8 | ||
9 | // Assist: add_explicit_type | 9 | // Assist: add_explicit_type |
10 | // | ||
10 | // Specify type for a let binding | 11 | // Specify type for a let binding |
12 | // | ||
11 | // ``` | 13 | // ``` |
12 | // fn main() { | 14 | // fn main() { |
13 | // let x<|> = 92; | 15 | // let x<|> = 92; |
diff --git a/crates/ra_assists/src/assists/add_impl.rs b/crates/ra_assists/src/assists/add_impl.rs index 40bc5c464..43aeac7bd 100644 --- a/crates/ra_assists/src/assists/add_impl.rs +++ b/crates/ra_assists/src/assists/add_impl.rs | |||
@@ -9,7 +9,9 @@ use ra_syntax::{ | |||
9 | use crate::{Assist, AssistCtx, AssistId}; | 9 | use crate::{Assist, AssistCtx, AssistId}; |
10 | 10 | ||
11 | // Assist: add_impl | 11 | // Assist: add_impl |
12 | // | ||
12 | // Adds a new inherent impl for a type | 13 | // Adds a new inherent impl for a type |
14 | // | ||
13 | // ``` | 15 | // ``` |
14 | // struct Ctx<T: Clone> { | 16 | // struct Ctx<T: Clone> { |
15 | // data: T,<|> | 17 | // data: T,<|> |
diff --git a/crates/ra_assists/src/assists/add_missing_impl_members.rs b/crates/ra_assists/src/assists/add_missing_impl_members.rs index 36fa6f9ea..fe1f2e72e 100644 --- a/crates/ra_assists/src/assists/add_missing_impl_members.rs +++ b/crates/ra_assists/src/assists/add_missing_impl_members.rs | |||
@@ -13,7 +13,9 @@ enum AddMissingImplMembersMode { | |||
13 | } | 13 | } |
14 | 14 | ||
15 | // Assist: add_impl_missing_members | 15 | // Assist: add_impl_missing_members |
16 | // | ||
16 | // Adds scaffold for required impl members | 17 | // Adds scaffold for required impl members |
18 | // | ||
17 | // ``` | 19 | // ``` |
18 | // trait T { | 20 | // trait T { |
19 | // Type X; | 21 | // Type X; |
diff --git a/crates/ra_assists/src/assists/apply_demorgan.rs b/crates/ra_assists/src/assists/apply_demorgan.rs index a072f63e7..75144cefe 100644 --- a/crates/ra_assists/src/assists/apply_demorgan.rs +++ b/crates/ra_assists/src/assists/apply_demorgan.rs | |||
@@ -5,11 +5,13 @@ use ra_syntax::SyntaxNode; | |||
5 | use crate::{Assist, AssistCtx, AssistId}; | 5 | use crate::{Assist, AssistCtx, AssistId}; |
6 | 6 | ||
7 | // Assist: apply_demorgan | 7 | // Assist: apply_demorgan |
8 | // | ||
8 | // Apply [De Morgan's law](https://en.wikipedia.org/wiki/De_Morgan%27s_laws). | 9 | // Apply [De Morgan's law](https://en.wikipedia.org/wiki/De_Morgan%27s_laws). |
9 | // This transforms expressions of the form `!l || !r` into `!(l && r)`. | 10 | // This transforms expressions of the form `!l || !r` into `!(l && r)`. |
10 | // This also works with `&&`. This assist can only be applied with the cursor | 11 | // This also works with `&&`. This assist can only be applied with the cursor |
11 | // on either `||` or `&&`, with both operands being a negation of some kind. | 12 | // on either `||` or `&&`, with both operands being a negation of some kind. |
12 | // This means something of the form `!x` or `x != y`. | 13 | // This means something of the form `!x` or `x != y`. |
14 | // | ||
13 | // ``` | 15 | // ``` |
14 | // fn main() { | 16 | // fn main() { |
15 | // if x != 4 ||<|> !y {} | 17 | // if x != 4 ||<|> !y {} |