File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 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 {
9898#[ cfg( feature = "allocator_api" ) ]
9999mod allocator_api {
100100 use super :: * ;
101- use core:: {
102- alloc:: { AllocError , Allocator , Layout } ,
103- ptr:: NonNull ,
104- } ;
101+ use core:: alloc:: { AllocError , Allocator } ;
105102
106103 unsafe impl Allocator for Heap {
107104 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 {
8686#[ cfg( feature = "allocator_api" ) ]
8787mod allocator_api {
8888 use super :: * ;
89- use core:: {
90- alloc:: { AllocError , Allocator , Layout } ,
91- ptr:: NonNull ,
92- } ;
89+ use core:: alloc:: { AllocError , Allocator } ;
9390
9491 unsafe impl Allocator for Heap {
9592 fn allocate ( & self , layout : Layout ) -> Result < NonNull < [ u8 ] > , AllocError > {
You can’t perform that action at this time.
0 commit comments