Skip to content

Commit 1647c55

Browse files
CoAlloc: VecDeque: Fixing COOP_PREFERRED.
1 parent a772e0f commit 1647c55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/alloc/src/collections/vec_deque/spec_from_iter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ where
2222
}
2323
}
2424

25-
impl<T, A: Allocator, const COOP_PREFERRED: bool> SpecFromIter<T, crate::vec::IntoIter<T>>
25+
impl<T, A: Allocator, const COOP_PREFERRED: bool> SpecFromIter<T, crate::vec::IntoIter<T, A, COOP_PREFERRED>>
2626
for VecDeque<T, A, COOP_PREFERRED>
2727
where
2828
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,
2929
{
3030
#[inline]
31-
fn spec_from_iter(iterator: crate::vec::IntoIter<T>) -> Self {
31+
fn spec_from_iter(iterator: crate::vec::IntoIter<T, A, COOP_PREFERRED>) -> Self {
3232
iterator.into_vecdeque()
3333
}
3434
}
3535

36-
impl<T, A: Allocator, const COOP_PREFERRED: bool> SpecFromIter<T, IntoIter<T>>
36+
impl<T, A: Allocator, const COOP_PREFERRED: bool> SpecFromIter<T, IntoIter<T, A, COOP_PREFERRED>>
3737
for VecDeque<T, A, COOP_PREFERRED>
3838
where
3939
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(COOP_PREFERRED)]:,

0 commit comments

Comments
 (0)