From 1017eef9818672cefb52fc0c75134a973fb67cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Hatcher?= Date: Fri, 12 Sep 2025 18:32:15 +0200 Subject: [PATCH] FIX: Cargo clippy. Manual fixes --- xlsx/src/export/escape.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlsx/src/export/escape.rs b/xlsx/src/export/escape.rs index 296b597..8bfe7cb 100644 --- a/xlsx/src/export/escape.rs +++ b/xlsx/src/export/escape.rs @@ -78,7 +78,7 @@ impl Extend<(usize, Value)> for Process<'_> { /// The resulting string is safe to use inside XML attribute values. /// /// Does not perform allocations if the given string does not contain escapable characters. -pub fn escape_xml(s: &str) -> Cow { +pub fn escape_xml(s: &'_ str) -> Cow<'_, str> { let mut p = Process::Borrowed(s); p.extend(s.char_indices().map(|(ind, c)| (ind, escape_char(c)))); p.into_result()