Skip to content

Commit 9d808d1

Browse files
CoAlloc: VecDeque (io::Read + io::Write for VecDeque): minor
1 parent 94f4fdd commit 9d808d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/std/src/io/impls.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#[cfg(test)]
22
mod tests;
33

4-
use crate::alloc::Allocator;
4+
use crate::alloc::{Allocator, self};
55
use crate::cmp;
66
use crate::collections::VecDeque;
77
use crate::fmt;
@@ -419,7 +419,7 @@ where
419419
#[stable(feature = "vecdeque_read_write", since = "1.63.0")]
420420
impl<A: Allocator, const _COOP_PREFERRED: bool> Read for VecDeque<u8, A, _COOP_PREFERRED>
421421
where
422-
[(); co_alloc_metadata_num_slots_with_preference::<A>(_COOP_PREFERRED)]:,
422+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(_COOP_PREFERRED)]:,
423423
{
424424
/// Fill `buf` with the contents of the "front" slice as returned by
425425
/// [`as_slices`][`VecDeque::as_slices`]. If the contained byte slices of the `VecDeque` are
@@ -446,7 +446,7 @@ where
446446
#[stable(feature = "vecdeque_read_write", since = "1.63.0")]
447447
impl<A: Allocator, const _COOP_PREFERRED: bool> Write for VecDeque<u8, A, _COOP_PREFERRED>
448448
where
449-
[(); co_alloc_metadata_num_slots_with_preference::<A>(_COOP_PREFERRED)]:,
449+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<A>(_COOP_PREFERRED)]:,
450450
{
451451
#[inline]
452452
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {

0 commit comments

Comments
 (0)