Fix ...
in multline code-skips in suggestions
When we have long code skips, we write `...` in the line number gutter. For suggestions, we were "centering" the `...` with the line, but that was consistent with what we do in every other case.
This commit is contained in:
parent
4b7ae63fbf
commit
3baafd2e8c
@ -62,7 +62,7 @@ LL | }
|
|||||||
LL | match s.len() {
|
LL | match s.len() {
|
||||||
LL ~ 10 => 2,
|
LL ~ 10 => 2,
|
||||||
LL | 20 => {
|
LL | 20 => {
|
||||||
...
|
...
|
||||||
LL | if foo() {
|
LL | if foo() {
|
||||||
LL ~ return 20;
|
LL ~ return 20;
|
||||||
LL | }
|
LL | }
|
||||||
|
@ -212,7 +212,7 @@ help: check if the original Iterator contains an element instead of collecting t
|
|||||||
|
|
|
|
||||||
LL ~
|
LL ~
|
||||||
LL |
|
LL |
|
||||||
...
|
...
|
||||||
LL | // Do lint
|
LL | // Do lint
|
||||||
LL ~ vec.iter().map(|k| k * k).any(|x| x == n);
|
LL ~ vec.iter().map(|k| k * k).any(|x| x == n);
|
||||||
|
|
|
|
||||||
|
@ -215,7 +215,7 @@ help: move the declaration `x` here
|
|||||||
|
|
|
|
||||||
LL ~
|
LL ~
|
||||||
LL | // types that should be considered insignificant
|
LL | // types that should be considered insignificant
|
||||||
...
|
...
|
||||||
LL | let y = Box::new(4);
|
LL | let y = Box::new(4);
|
||||||
LL ~ let x = SignificantDrop;
|
LL ~ let x = SignificantDrop;
|
||||||
|
|
|
|
||||||
|
@ -518,7 +518,7 @@ help: remove `return`
|
|||||||
|
|
|
|
||||||
LL ~ 10
|
LL ~ 10
|
||||||
LL | },
|
LL | },
|
||||||
...
|
...
|
||||||
LL | },
|
LL | },
|
||||||
LL ~ }
|
LL ~ }
|
||||||
|
|
|
|
||||||
|
Loading…
Reference in New Issue
Block a user