File tree 2 files changed +2
-8
lines changed
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -98,10 +98,7 @@ unsafe impl GlobalAlloc for Heap {
98
98
#[ cfg( feature = "allocator_api" ) ]
99
99
mod allocator_api {
100
100
use super :: * ;
101
- use core:: {
102
- alloc:: { AllocError , Allocator , Layout } ,
103
- ptr:: NonNull ,
104
- } ;
101
+ use core:: alloc:: { AllocError , Allocator } ;
105
102
106
103
unsafe impl Allocator for Heap {
107
104
fn allocate ( & self , layout : Layout ) -> Result < NonNull < [ u8 ] > , AllocError > {
Original file line number Diff line number Diff line change @@ -86,10 +86,7 @@ unsafe impl GlobalAlloc for Heap {
86
86
#[ cfg( feature = "allocator_api" ) ]
87
87
mod allocator_api {
88
88
use super :: * ;
89
- use core:: {
90
- alloc:: { AllocError , Allocator , Layout } ,
91
- ptr:: NonNull ,
92
- } ;
89
+ use core:: alloc:: { AllocError , Allocator } ;
93
90
94
91
unsafe impl Allocator for Heap {
95
92
fn allocate ( & self , layout : Layout ) -> Result < NonNull < [ u8 ] > , AllocError > {
You can’t perform that action at this time.
0 commit comments