v0.24.7_cleanup_warnings

This commit is contained in:
Mateusz Gruszczyński committed 2026-10-03 10:26:38 +02:00
1 parent 1bfec751d1
commit 579d9c806b
12 files changed
+48 -23

No files matched your search

-2
View File
@@ -24,7 +24,6 @@ pub fn minify(body: &[u8]) -> Result<Vec<u8>> {
if matches!(ch, '\'' | '"') {
if pending_space && needs_space(last_char, Some(ch)) {
out.push(' ');
last_char = Some(' ');
}
pending_space = false;
quote = Some(ch);
@@ -55,7 +54,6 @@ pub fn minify(body: &[u8]) -> Result<Vec<u8>> {
pending_space = false;
if matches!(ch, '{' | '}' | ':' | ';' | ',' | '>') && last_char == Some(' ') {
out.pop();
last_char = out.chars().last();
}
out.push(ch);
last_char = Some(ch);