diff --git a/Cargo.toml b/Cargo.toml index 17254dc9..3a9e9f09 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ log = "0.3" env_logger = "0.3" toml = { version = "0.2", features = ["serde"] } open = "1.1" -regex = "0.1.80" +regex = "0.2.1" # Watch feature notify = { version = "3.0", optional = true } diff --git a/src/renderer/html_handlebars/hbs_renderer.rs b/src/renderer/html_handlebars/hbs_renderer.rs index 83b65bf0..0945b5ea 100644 --- a/src/renderer/html_handlebars/hbs_renderer.rs +++ b/src/renderer/html_handlebars/hbs_renderer.rs @@ -242,7 +242,7 @@ fn build_header_links(mut html: String) -> String { }).collect::(); format!("<{h}>{text}", h=header, id=id, text=text) - }); + }).into_owned(); } html