Skip to content

Commit

Permalink
Bump minifier to 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Folyd committed Apr 29, 2024
1 parent 854e416 commit 98c6f74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extension/index/crates.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ publish = false
[dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
minifier = "0.2"
minifier = "0.3"
unicode-segmentation = "1"
futures = "0.3"
tokio = { version = "1", features = ["macros", "time", "rt-multi-thread"] }
Expand Down
2 changes: 1 addition & 1 deletion rust/src/minify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl<'a> Minifier<'a> {
pub fn minify_js(json: &str) -> String {
let tokens: Tokens = simple_minify(json)
.into_iter()
.map(|(token, _)| match token {
.map(|token| match token {
Token::Keyword(Keyword::Null) => Token::Other("N"),
_ => token,
})
Expand Down

0 comments on commit 98c6f74

Please sign in to comment.