Use 'alloc' gate only for platforms which use freetype in gfx

This commit is contained in:
Tetsuharu OHZEKI 2017-02-06 23:03:45 +09:00
parent fb4f421c8b
commit 550d726ad2
2 changed files with 5 additions and 4 deletions

View file

@ -2,8 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
extern crate alloc;
use alloc::heap;
use freetype::freetype::FT_Add_Default_Modules;
use freetype::freetype::FT_Done_Library;
use freetype::freetype::FT_Library;
@ -11,7 +10,6 @@ use freetype::freetype::FT_Memory;
use freetype::freetype::FT_MemoryRec_;
use freetype::freetype::FT_New_Library;
use heapsize::{HeapSizeOf, heap_size_of};
use self::alloc::heap;
use std::os::raw::{c_long, c_void};
use std::ptr;
use std::rc::Rc;