mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 07:04:18 +00:00
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
4 changed files with 4 additions and 4 deletions
|
@ -62,7 +62,7 @@ LL | }
|
|||
LL | match s.len() {
|
||||
LL ~ 10 => 2,
|
||||
LL | 20 => {
|
||||
...
|
||||
...
|
||||
LL | if foo() {
|
||||
LL ~ return 20;
|
||||
LL | }
|
||||
|
|
|
@ -212,7 +212,7 @@ help: check if the original Iterator contains an element instead of collecting t
|
|||
|
|
||||
LL ~
|
||||
LL |
|
||||
...
|
||||
...
|
||||
LL | // Do lint
|
||||
LL ~ vec.iter().map(|k| k * k).any(|x| x == n);
|
||||
|
|
||||
|
|
|
@ -215,7 +215,7 @@ help: move the declaration `x` here
|
|||
|
|
||||
LL ~
|
||||
LL | // types that should be considered insignificant
|
||||
...
|
||||
...
|
||||
LL | let y = Box::new(4);
|
||||
LL ~ let x = SignificantDrop;
|
||||
|
|
||||
|
|
|
@ -518,7 +518,7 @@ help: remove `return`
|
|||
|
|
||||
LL ~ 10
|
||||
LL | },
|
||||
...
|
||||
...
|
||||
LL | },
|
||||
LL ~ }
|
||||
|
|
||||
|
|
Loading…
Reference in a new issue