Skip to content

Commit 7163918

Browse files
committed
fix lint
1 parent 394ca5e commit 7163918

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

opentelemetry-sdk/src/trace/span_processor.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,7 @@ impl BatchSpanProcessor {
260260
let handle = thread::Builder::new()
261261
.name("BatchSpanProcessorThread".to_string())
262262
.spawn(move || {
263-
let mut spans = Vec::new();
264-
spans.reserve(config.max_export_batch_size);
263+
let mut spans = Vec::with_capacity(config.max_export_batch_size);
265264
let mut last_export_time = Instant::now();
266265

267266
loop {

0 commit comments

Comments
 (0)