summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Erik Rediger <janerik@fnordig.de>2020-04-06 10:43:01 +0200
committerJan-Erik Rediger <janerik@fnordig.de>2020-04-06 10:43:01 +0200
commite170360482a3a8cb41bdae1c6708b906ffc6ad21 (patch)
tree2c14ef16b67fb92243d9be1470890630ec886951
parent4a155cd5f367b22fd1cd87bbd77b0ca436214adb (diff)
Make it edition 2018
-rw-r--r--Cargo.toml1
-rw-r--r--src/bin/mdbook-mermaid.rs5
-rw-r--r--src/lib.rs4
3 files changed, 1 insertions, 9 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 838dbea..b327353 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,6 +6,7 @@ description = "mdbook preprocessor to add mermaid support"
license = "MPL-2.0"
homepage = "https://github.com/badboy/mdbook-mermaid"
repository = "https://github.com/badboy/mdbook-mermaid"
+edition = "2018"
[dependencies]
mdbook = "0.3"
diff --git a/src/bin/mdbook-mermaid.rs b/src/bin/mdbook-mermaid.rs
index c097e39..166cc80 100644
--- a/src/bin/mdbook-mermaid.rs
+++ b/src/bin/mdbook-mermaid.rs
@@ -1,8 +1,3 @@
-extern crate clap;
-extern crate mdbook;
-extern crate mdbook_mermaid;
-extern crate serde_json;
-
use clap::{crate_version, App, Arg, ArgMatches, SubCommand};
use mdbook::errors::Error;
use mdbook::preprocess::{CmdPreprocessor, Preprocessor};
diff --git a/src/lib.rs b/src/lib.rs
index 8330da3..c306bbb 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,7 +1,3 @@
-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};