v0.24.7_cleanup_warnings
This commit is contained in:
1 parent
1bfec751d1
commit
579d9c806b
12 files changed
+48
-23
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user