From 718d3caf238505ef2bdffaca1b292f83034b28de Mon Sep 17 00:00:00 2001 From: m Date: Sun, 4 Aug 2024 13:53:09 -0700 Subject: [PATCH] clippy fix --- src/frontend/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/parser.rs b/src/frontend/parser.rs index cd96c2b..e6ba962 100644 --- a/src/frontend/parser.rs +++ b/src/frontend/parser.rs @@ -339,7 +339,7 @@ impl<'a> Parser<'a> { } } -pub(self) fn parse_string_literal(s: &str) -> Cow<'_, str> { +fn parse_string_literal(s: &str) -> Cow<'_, str> { debug_assert!(s.len() >= 2 && &s[0..1] == "\"" && &s[s.len() - 1..] == "\""); let mut replace = vec![]; let s = &s[1..s.len() - 1];