Browse Source

Use `Vec::with_capacity`.

pull/42/head
Dan Gohman 6 years ago
parent
commit
00a84672f7
  1. 2
      lib/runtime/src/table.rs

2
lib/runtime/src/table.rs

@ -25,7 +25,7 @@ impl Table {
match plan.style {
TableStyle::CallerChecksSignature => {
let mut vec = Vec::new();
let mut vec = Vec::with_capacity(plan.table.minimum as usize);
vec.resize(
plan.table.minimum as usize,
VMCallerCheckedAnyfunc::default(),

Loading…
Cancel
Save