We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b1f4a5 commit 3345d25Copy full SHA for 3345d25
crates/oxc_transformer/src/plugins/styled_components.rs
@@ -1256,8 +1256,8 @@ mod tests {
1256
1257
#[test]
1258
fn returns_indices_of_removed_placeholders() {
1259
- let allocator = Box::leak(Box::new(Allocator::default()));
1260
- let ast = AstBuilder::new(allocator);
+ let allocator = Allocator::default();
+ let ast = AstBuilder::new(&allocator);
1261
1262
// Create raw values that will generate placeholders
1263
let css = "this is some\ninput with __PLACEHOLDER_0__ and // ignored __PLACEHOLDER_1__";
0 commit comments