1
Fork 0

Upgrade dependencies, including mdbook itself

This commit is contained in:
Jan-Erik Rediger 2020-09-28 17:25:03 +02:00
parent 531073fe2b
commit 8dceed5003
3 changed files with 715 additions and 817 deletions

1522
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -9,13 +9,13 @@ repository = "https://github.com/badboy/mdbook-toc"
edition = "2018"
[dependencies]
mdbook = "0.3"
mdbook = "0.4.3"
pulldown-cmark = "0.7.0"
pulldown-cmark-to-cmark = "4.0.2"
env_logger = "0.7.1"
log = "0.4"
clap = "2.33"
serde_json = "1.0"
log = "0.4.11"
clap = "2.33.3"
serde_json = "1.0.57"
[dev-dependencies]
pretty_assertions = "0.6.1"

View file

@ -145,7 +145,7 @@ fn add_toc(content: &str) -> Result<String> {
opts.newlines_after_codeblock = 1;
cmark_with_options(events, &mut buf, None, opts)
.map(|_| buf)
.map_err(|err| Error::from(format!("Markdown serialization failed: {}", err)))
.map_err(|err| Error::msg(format!("Markdown serialization failed: {}", err)))
}
impl Toc {