Skip to content

Commit

Permalink
chore: revert rc to arc
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Sep 20, 2024
1 parent 86616b6 commit 4ab028f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion crates/core/src/add_jsx_attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ fn svg_prop_to_attr(key: &str, value: &str) -> Attribute {

#[cfg(test)]
mod tests {
use std::rc::Arc;
use std::sync::Arc;

use swc_core::{
common::{FileName, SourceMap},
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/hast_to_swc_ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ pub fn to_swc_ast(hast: swc_xml::ast::Document) -> Option<JSXElement> {

#[cfg(test)]
mod tests {
use std::{borrow::Borrow, path::PathBuf, rc::Arc};
use std::{borrow::Borrow, path::PathBuf, sync::Arc};

use swc_core::{
common::{FileName, SourceFile, SourceMap},
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![feature(path_file_prefix)]
#![deny(clippy::all)]

use std::{sync::Arc};
use std::sync::Arc;

use swc_core::{
common::{comments::SingleThreadedComments, FileName, SourceMap},
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/remove_jsx_attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl VisitMut for Visitor {

#[cfg(test)]
mod tests {
use std::{default::Default, rc::Arc};
use std::{default::Default, sync::Arc};

use swc_core::{
common::{FileName, SourceMap},
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/replace_jsx_attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn get_attr_value(new: &str) -> JSXAttrValue {

#[cfg(test)]
mod tests {
use std::rc::Arc;
use std::sync::Arc;

use swc_core::{
common::{FileName, SourceMap},
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/svg_dynamic_title.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ impl VisitMut for Visitor {

#[cfg(test)]
mod tests {
use std::rc::Arc;
use std::sync::Arc;

use swc_core::{
common::{FileName, SourceMap},
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/svg_em_dimensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ fn get_value(raw: Option<&Size>) -> JSXAttrValue {

#[cfg(test)]
mod tests {
use std::{default::Default, rc::Arc};
use std::{default::Default, sync::Arc};

use swc_core::{
common::{FileName, SourceMap},
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/transform_svg_component/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pub fn transform(

#[cfg(test)]
mod tests {
use std::{borrow::Borrow, rc::Arc};
use std::{borrow::Borrow, sync::Arc};

use swc_core::{
common::{FileName, SourceMap},
Expand Down

0 comments on commit 4ab028f

Please sign in to comment.