Skip to content

Commit 287beb2

Browse files
committed
fix std import
1 parent ee660bd commit 287beb2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/multi/mod.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,10 @@ where
373373
return Err(Err::Failure(E::from_error_kind(input, ErrorKind::ManyMN)));
374374
}
375375

376-
let mut res =
377-
crate::lib::std::vec::Vec::with_capacity(std::cmp::min(min, MAX_INITIAL_CAPACITY));
376+
let mut res = crate::lib::std::vec::Vec::with_capacity(crate::lib::std::cmp::min(
377+
min,
378+
MAX_INITIAL_CAPACITY,
379+
));
378380
for count in 0..max {
379381
let len = input.input_len();
380382
match parse.parse(input.clone()) {
@@ -541,8 +543,10 @@ where
541543
{
542544
move |i: I| {
543545
let mut input = i.clone();
544-
let mut res =
545-
crate::lib::std::vec::Vec::with_capacity(std::cmp::min(count, MAX_INITIAL_CAPACITY));
546+
let mut res = crate::lib::std::vec::Vec::with_capacity(crate::lib::std::cmp::min(
547+
count,
548+
MAX_INITIAL_CAPACITY,
549+
));
546550

547551
for _ in 0..count {
548552
let input_ = input.clone();

0 commit comments

Comments
 (0)