diff --git a/Cargo.toml b/Cargo.toml index 28e418ea..9da114bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,7 +43,7 @@ actix-http = "3.6.0" actix-service = "2.0.2" actix-web = "4.5.1" ahash = { version = "0.8.11", features = ["std", "serde", "runtime-rng"] } -chrono = { version = "0.4.35", features = ["alloc", "std", "clock", "serde", "unstable-locales"] } +chrono = { version = "0.4.37", features = ["alloc", "std", "clock", "serde", "unstable-locales"] } clap = { version = "4.5.3", features = ["cargo", "suggestions", "color", "wrap_help", "unicode"] } comrak = { version = "0.19.0", features = ["syntect", "shortcodes"] } derive_more = { version = "0.99.17", features = ["default", "convert_case", "generate-parsing-rs", "testing-helpers", "nightly", "peg", "rustc_version" ] } diff --git a/src/lib.rs b/src/lib.rs index e66774cc..44946f12 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -742,7 +742,7 @@ pub fn split_frontmatter(page_text: String) -> (String, String) { } if frontmatter.trim().is_empty() { - frontmatter = "empty: true".to_owned(); + "empty: true".clone_into(&mut frontmatter); } (frontmatter, contents)