Skip to content

Commit

Permalink
chore(css): remove unnecessary format (#2633)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsdsjy authored Apr 6, 2023
1 parent 999b853 commit cc14209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rspack_plugin_css/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub fn css_modules_exports_to_string(
.iter()
.map(|element| match element {
CssClassName::Local { name } | CssClassName::Global { name } => {
serde_json::to_string(&format!("{name}")).expect("TODO:")
serde_json::to_string(name).expect("TODO:")
}
CssClassName::Import { name, from } => {
let name = serde_json::to_string(name).expect("TODO:");
Expand Down

0 comments on commit cc14209

Please sign in to comment.