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