Skip to content

Commit

Permalink
fix std import
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Dec 28, 2022
1 parent ee660bd commit 287beb2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/multi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,10 @@ where
return Err(Err::Failure(E::from_error_kind(input, ErrorKind::ManyMN)));
}

let mut res =
crate::lib::std::vec::Vec::with_capacity(std::cmp::min(min, MAX_INITIAL_CAPACITY));
let mut res = crate::lib::std::vec::Vec::with_capacity(crate::lib::std::cmp::min(
min,
MAX_INITIAL_CAPACITY,
));
for count in 0..max {
let len = input.input_len();
match parse.parse(input.clone()) {
Expand Down Expand Up @@ -541,8 +543,10 @@ where
{
move |i: I| {
let mut input = i.clone();
let mut res =
crate::lib::std::vec::Vec::with_capacity(std::cmp::min(count, MAX_INITIAL_CAPACITY));
let mut res = crate::lib::std::vec::Vec::with_capacity(crate::lib::std::cmp::min(
count,
MAX_INITIAL_CAPACITY,
));

for _ in 0..count {
let input_ = input.clone();
Expand Down

0 comments on commit 287beb2

Please sign in to comment.