File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
#[ cfg( test) ]
2
2
mod tests;
3
3
4
- use crate :: alloc:: Allocator ;
4
+ use crate :: alloc:: { Allocator , self } ;
5
5
use crate :: cmp;
6
6
use crate :: collections:: VecDeque ;
7
7
use crate :: fmt;
@@ -419,7 +419,7 @@ where
419
419
#[ stable( feature = "vecdeque_read_write" , since = "1.63.0" ) ]
420
420
impl < A : Allocator , const _COOP_PREFERRED: bool > Read for VecDeque < u8 , A , _COOP_PREFERRED >
421
421
where
422
- [ ( ) ; co_alloc_metadata_num_slots_with_preference :: < A > ( _COOP_PREFERRED) ] : ,
422
+ [ ( ) ; alloc :: co_alloc_metadata_num_slots_with_preference :: < A > ( _COOP_PREFERRED) ] : ,
423
423
{
424
424
/// Fill `buf` with the contents of the "front" slice as returned by
425
425
/// [`as_slices`][`VecDeque::as_slices`]. If the contained byte slices of the `VecDeque` are
@@ -446,7 +446,7 @@ where
446
446
#[ stable( feature = "vecdeque_read_write" , since = "1.63.0" ) ]
447
447
impl < A : Allocator , const _COOP_PREFERRED: bool > Write for VecDeque < u8 , A , _COOP_PREFERRED >
448
448
where
449
- [ ( ) ; co_alloc_metadata_num_slots_with_preference :: < A > ( _COOP_PREFERRED) ] : ,
449
+ [ ( ) ; alloc :: co_alloc_metadata_num_slots_with_preference :: < A > ( _COOP_PREFERRED) ] : ,
450
450
{
451
451
#[ inline]
452
452
fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
You can’t perform that action at this time.
0 commit comments