Replaced std with core

This commit is contained in:
Elichai Turkel 2019-05-15 22:01:56 +03:00
parent 2960f1b4ec
commit ab5586a627
No known key found for this signature in database
GPG Key ID: 5607C93B5F86650C
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ impl MemoryInstance {
/// [`LINEAR_MEMORY_PAGE_SIZE`]: constant.LINEAR_MEMORY_PAGE_SIZE.html
pub fn alloc(initial: Pages, maximum: Option<Pages>) -> Result<MemoryRef, Error> {
{
use std::convert::TryInto;
use core::convert::TryInto;
let initial_u32: u32 = initial.0.try_into().map_err(|_| {
Error::Memory(format!("initial ({}) can't be coerced to u32", initial.0))
})?;