aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists
diff options
context:
space:
mode:
authorEvgenii P <[email protected]>2019-07-30 15:02:29 +0100
committerEvgenii P <[email protected]>2019-07-30 15:02:29 +0100
commit06c3de310e4a9e82c64eb3e537a2b358ea2a6aed (patch)
tree4ba087762ce53633d1d59ae6384109d94ed408ea /crates/ra_assists
parente7cdbe795a0eb061ce5b0274d4b3ca3029cfbe18 (diff)
rustfmt
Diffstat (limited to 'crates/ra_assists')
-rw-r--r--crates/ra_assists/src/flip_comma.rs25
1 files changed, 15 insertions, 10 deletions
diff --git a/crates/ra_assists/src/flip_comma.rs b/crates/ra_assists/src/flip_comma.rs
index 1b7521e8b..5ee7561bc 100644
--- a/crates/ra_assists/src/flip_comma.rs
+++ b/crates/ra_assists/src/flip_comma.rs
@@ -49,15 +49,20 @@ mod tests {
49 // See https://github.com/rust-analyzer/rust-analyzer/issues/1619 49 // See https://github.com/rust-analyzer/rust-analyzer/issues/1619
50 // "Flip comma" assist shouldn't be applicable to the last comma in enum or struct 50 // "Flip comma" assist shouldn't be applicable to the last comma in enum or struct
51 // declaration body. 51 // declaration body.
52 check_assist_target(flip_comma, 52 check_assist_target(
53 "pub enum Test { \ 53 flip_comma,
54 A,<|> \ 54 "pub enum Test { \
55 }", ","); 55 A,<|> \
56 56 }",
57 57 ",",
58 check_assist_target(flip_comma, 58 );
59 "pub struct Test { \ 59
60 foo: usize,<|> \ 60 check_assist_target(
61 }", ","); 61 flip_comma,
62 "pub struct Test { \
63 foo: usize,<|> \
64 }",
65 ",",
66 );
62 } 67 }
63} 68}