internal: slightly improve compile times

As per style guide, avoid monomorphisations
This commit is contained in:
Aleksey Kladov 2021-08-29 12:31:42 +03:00
parent bef5e3096e
commit 78365c64c8
4 changed files with 21 additions and 18 deletions

View file

@ -222,7 +222,7 @@ fn unresolved_fix(id: &'static str, label: &str, target: TextRange) -> Assist {
assert!(!id.contains(' '));
Assist {
id: AssistId(id, AssistKind::QuickFix),
label: Label::new(label),
label: Label::new(label.to_string()),
group: None,
target,
source_change: None,