ci: update Rust to 1.95.0

This commit is contained in:
link2xt
2026-04-16 18:27:21 +02:00
committed by l
parent b8cfee7e9e
commit 7daa6cc8d9
14 changed files with 4 additions and 27 deletions

View File

@@ -9,7 +9,6 @@ use crate::tools::IsNoneOrEmpty;
/// This escapes a bit more than actually needed by delta (e.g. also lines as "-- footer"),
/// but for non-delta-compatibility, that seems to be better.
/// (to be only compatible with delta, only "[\r\n|\n]-- {0,2}[\r\n|\n]" needs to be replaced)
#[expect(clippy::arithmetic_side_effects)]
pub fn escape_message_footer_marks(text: &str) -> String {
if let Some(text) = text.strip_prefix("--") {
"-\u{200B}-".to_string() + &text.replace("\n--", "\n-\u{200B}-")