mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
fix: place type inlay hints after the item and without left-padding
This commit is contained in:
parent
2f8cd66fb4
commit
22599adf9b
2 changed files with 4 additions and 4 deletions
|
@ -106,8 +106,8 @@ pub(super) fn hints(
|
|||
kind: InlayKind::Type,
|
||||
label,
|
||||
text_edit,
|
||||
position: InlayHintPosition::Before,
|
||||
pad_left: !has_colon,
|
||||
position: InlayHintPosition::After,
|
||||
pad_left: false,
|
||||
pad_right: false,
|
||||
});
|
||||
|
||||
|
|
|
@ -625,8 +625,8 @@ fn main() {
|
|||
[
|
||||
InlayHint {
|
||||
range: 124..130,
|
||||
position: Before,
|
||||
pad_left: true,
|
||||
position: After,
|
||||
pad_left: false,
|
||||
pad_right: false,
|
||||
kind: Type,
|
||||
label: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue