We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5df6259 commit 160a7b0Copy full SHA for 160a7b0
crates/ide/src/annotations.rs
@@ -116,7 +116,7 @@ pub(crate) fn annotations(
116
}
117
118
if config.annotate_enum_variant_references {
119
- let mut enum_variants_metadata: Vec<(TextRange, TextSize)> = Vec::new();
+ let mut enum_variants_metadata: Vec<(TextRange, TextSize)> = Vec::with_capacity(ranges_enum_variants.len());
120
for range_enum_variant in ranges_enum_variants.into_iter() {
121
let (range, offset) = match range_enum_variant {
122
Some(range) => (range, range.start()),
0 commit comments