From 5be300c99f81603f0e845443800418323d9b073a Mon Sep 17 00:00:00 2001 From: Elichai Turkel Date: Thu, 16 May 2019 19:46:22 +0300 Subject: [PATCH] Replaced std with core in the TryInto import (#181) * Replaced std with core * Changed rust nightly to not allowed to fail in travis CI --- .travis.yml | 3 --- src/memory.rs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 29a7095..e54d69d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,9 +6,6 @@ language: rust: - nightly - stable -matrix: - allow_failures: - - rust: nightly addons: apt: sources: diff --git a/src/memory.rs b/src/memory.rs index 1f29f03..048720d 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -110,7 +110,7 @@ impl MemoryInstance { /// [`LINEAR_MEMORY_PAGE_SIZE`]: constant.LINEAR_MEMORY_PAGE_SIZE.html pub fn alloc(initial: Pages, maximum: Option) -> Result { { - 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)) })?;