Skip to content

Commit

Permalink
fix: capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
killme2008 committed Dec 6, 2023
1 parent 0eab2e9 commit b38a7ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/function/src/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use datatypes::prelude::ConcreteDataType;

/// Create a function signature with oneof signatures of interleaving two arguments.
pub fn one_of_sigs2(args1: Vec<ConcreteDataType>, args2: Vec<ConcreteDataType>) -> Signature {
let mut sigs = Vec::with_capacity(args1.len() + args2.len());
let mut sigs = Vec::with_capacity(args1.len() * args2.len());

for arg1 in &args1 {
for arg2 in &args2 {
Expand Down

0 comments on commit b38a7ca

Please sign in to comment.