From b081ee57cafc8a5ccce1990386173e94bc508517 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 27 Mar 2024 13:33:06 +0000 Subject: [PATCH 1/2] Update Rust crate chrono to 0.4.37 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ] } From 1b82b9915ad2fdd55441316af1c0a3a53b0d8ac0 Mon Sep 17 00:00:00 2001 From: Dokkoo Date: Wed, 27 Mar 2024 13:34:31 +0000 Subject: [PATCH 2/2] Automatically apply compiler suggestions --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)