diff --git a/mdbook-spec/CHANGELOG.md b/mdbook-spec/CHANGELOG.md index 7a22032..53eaf0f 100644 --- a/mdbook-spec/CHANGELOG.md +++ b/mdbook-spec/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## mdbook-spec 0.1.2 + +- Fixed some issues with rust-lang/rust build integration. + ## mdbook-spec 0.1.1 - Moved code to a library to support upstream integration. diff --git a/mdbook-spec/Cargo.toml b/mdbook-spec/Cargo.toml index 2ed2a51..a81915d 100644 --- a/mdbook-spec/Cargo.toml +++ b/mdbook-spec/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mdbook-spec" -version = "0.1.1" +version = "0.1.2" edition = "2021" license = "MIT OR Apache-2.0" description = "An mdBook preprocessor to help with the Rust specification." @@ -13,7 +13,7 @@ anyhow = "1.0.79" mdbook = { version = "0.4.36", default-features = false } once_cell = "1.19.0" pathdiff = "0.2.1" -regex = "1.10.3" +regex = "1.9.4" semver = "1.0.21" serde_json = "1.0.113" tempfile = "3.10.1" diff --git a/mdbook-spec/src/lib.rs b/mdbook-spec/src/lib.rs index bc2c336..6591e41 100644 --- a/mdbook-spec/src/lib.rs +++ b/mdbook-spec/src/lib.rs @@ -65,7 +65,7 @@ impl Spec { let source_path = chapter.source_path.clone().unwrap_or_default(); let path = chapter.path.clone().unwrap_or_default(); RULE_RE - .replace_all(&chapter.content, |caps: &Captures| { + .replace_all(&chapter.content, |caps: &Captures<'_>| { let rule_id = &caps[1]; if let Some((old, _)) = found_rules.insert(rule_id.to_string(), (source_path.clone(), path.clone())) @@ -127,7 +127,7 @@ impl Spec { /// file. fn admonitions(&self, chapter: &Chapter) -> String { ADMONITION_RE - .replace_all(&chapter.content, |caps: &Captures| { + .replace_all(&chapter.content, |caps: &Captures<'_>| { let lower = caps["admon"].to_lowercase(); format!( "