Replaced std with core in the TryInto import (#181)

* Replaced std with core

* Changed rust nightly to not allowed to fail in travis CI
This commit is contained in:
Elichai Turkel 2019-05-16 19:46:22 +03:00 committed by Sergei Pepyakin
parent 2960f1b4ec
commit 5be300c99f
2 changed files with 1 additions and 4 deletions

View File

@ -6,9 +6,6 @@ language:
rust:
- nightly
- stable
matrix:
allow_failures:
- rust: nightly
addons:
apt:
sources:

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))
})?;