mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-05 02:29:32 +00:00
Removed a deprecation warning
This commit is contained in:
parent
9784d7a23b
commit
fe3f2ee4b1
2 changed files with 9 additions and 1 deletions
|
@ -6,6 +6,15 @@ main() {
|
||||||
local src=$(pwd) \
|
local src=$(pwd) \
|
||||||
stage=
|
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
|
cargo rustc --bin mdbook --target $TARGET --release -- -C lto
|
||||||
|
|
||||||
cp target/release/mdbook $stage/
|
cp target/release/mdbook $stage/
|
||||||
|
|
|
@ -6,7 +6,6 @@ use renderer::html_handlebars::helpers;
|
||||||
use theme::{self, Theme, playpen_editor};
|
use theme::{self, Theme, playpen_editor};
|
||||||
use utils;
|
use utils;
|
||||||
|
|
||||||
#[allow(unused_imports)] use std::ascii::AsciiExt;
|
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::fs::{self, File};
|
use std::fs::{self, File};
|
||||||
|
|
Loading…
Reference in a new issue