rustfmt
This commit is contained in:
parent
e7cdbe795a
commit
06c3de310e
1 changed files with 14 additions and 9 deletions
|
@ -49,15 +49,20 @@ mod tests {
|
|||
// See https://github.com/rust-analyzer/rust-analyzer/issues/1619
|
||||
// "Flip comma" assist shouldn't be applicable to the last comma in enum or struct
|
||||
// declaration body.
|
||||
check_assist_target(flip_comma,
|
||||
"pub enum Test { \
|
||||
A,<|> \
|
||||
}", ",");
|
||||
check_assist_target(
|
||||
flip_comma,
|
||||
"pub enum Test { \
|
||||
A,<|> \
|
||||
}",
|
||||
",",
|
||||
);
|
||||
|
||||
|
||||
check_assist_target(flip_comma,
|
||||
"pub struct Test { \
|
||||
foo: usize,<|> \
|
||||
}", ",");
|
||||
check_assist_target(
|
||||
flip_comma,
|
||||
"pub struct Test { \
|
||||
foo: usize,<|> \
|
||||
}",
|
||||
",",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue