From fe3f2ee4b1f09a9580a90834ed0280db156c8bed Mon Sep 17 00:00:00 2001 From: Michael Bryan Date: Sat, 7 Apr 2018 06:27:58 +0800 Subject: [PATCH] Removed a deprecation warning --- ci/before_deploy.sh | 9 +++++++++ src/renderer/html_handlebars/hbs_renderer.rs | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh index 9d3f92b5..d5627f95 100644 --- a/ci/before_deploy.sh +++ b/ci/before_deploy.sh @@ -6,6 +6,15 @@ main() { local src=$(pwd) \ stage= + case $TRAVIS_OS_NAME in + linux) + stage=$(mktemp -d) + ;; + osx) + stage=$(mktemp -d -t tmp) + ;; + esac + cargo rustc --bin mdbook --target $TARGET --release -- -C lto cp target/release/mdbook $stage/ diff --git a/src/renderer/html_handlebars/hbs_renderer.rs b/src/renderer/html_handlebars/hbs_renderer.rs index 8e554ac3..fbaad523 100644 --- a/src/renderer/html_handlebars/hbs_renderer.rs +++ b/src/renderer/html_handlebars/hbs_renderer.rs @@ -6,7 +6,6 @@ use renderer::html_handlebars::helpers; use theme::{self, Theme, playpen_editor}; use utils; -#[allow(unused_imports)] use std::ascii::AsciiExt; use std::collections::BTreeMap; use std::collections::HashMap; use std::fs::{self, File};