Transition to 2018 edition (#933)

* Transition to 2018 edition

* Update Travis CI badge in README

* Remove non-idiomatic `extern crate` lines
This commit is contained in:
lzutao
2019-05-26 01:50:41 +07:00
committed by Dylan DPC
parent fe492d1cb9
commit 8542f7f29d
37 changed files with 82 additions and 158 deletions

View File

@@ -1,10 +1,5 @@
//! An example preprocessor for removing all forms of emphasis from a markdown
//! book.
extern crate mdbook;
extern crate pulldown_cmark;
extern crate pulldown_cmark_to_cmark;
use mdbook::book::{Book, BookItem, Chapter};
use mdbook::errors::{Error, Result};
use mdbook::preprocess::{Preprocessor, PreprocessorContext};

View File

@@ -1,12 +1,8 @@
extern crate clap;
extern crate mdbook;
extern crate serde_json;
use crate::nop_lib::Nop;
use clap::{App, Arg, ArgMatches, SubCommand};
use mdbook::book::Book;
use mdbook::errors::Error;
use mdbook::preprocess::{CmdPreprocessor, Preprocessor, PreprocessorContext};
use nop_lib::Nop;
use std::io;
use std::process;