mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Restructure InlayHint, no longer derive properties from its kind
This commit is contained in:
parent
4c5fd19ee5
commit
730286b523
15 changed files with 417 additions and 349 deletions
|
@ -8,7 +8,7 @@ use syntax::{
|
|||
SyntaxKind,
|
||||
};
|
||||
|
||||
use crate::{InlayHint, InlayHintsConfig, InlayKind, LifetimeElisionHints};
|
||||
use crate::{InlayHint, InlayHintPosition, InlayHintsConfig, InlayKind, LifetimeElisionHints};
|
||||
|
||||
pub(super) fn hints(
|
||||
acc: &mut Vec<InlayHint>,
|
||||
|
@ -35,6 +35,9 @@ pub(super) fn hints(
|
|||
kind: InlayKind::Lifetime,
|
||||
label: "'static".to_owned().into(),
|
||||
text_edit: None,
|
||||
position: InlayHintPosition::After,
|
||||
pad_left: false,
|
||||
pad_right: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue