From d5ae7bb13fdb5e855c678ced9b66d26674e08136 Mon Sep 17 00:00:00 2001 From: Hocdoc Date: Thu, 10 Nov 2022 17:00:33 +0100 Subject: Remove unneeded `extern crate`s Closes GH-28. Co-authored-by: Bernhard Berger --- tests/test_utils/hast.rs | 1 - tests/test_utils/hast_util_to_swc.rs | 2 -- tests/test_utils/mdx_plugin_recma_document.rs | 1 - tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs | 2 -- tests/test_utils/swc.rs | 5 +---- 5 files changed, 1 insertion(+), 10 deletions(-) (limited to 'tests/test_utils') diff --git a/tests/test_utils/hast.rs b/tests/test_utils/hast.rs index 2861898..857df4d 100644 --- a/tests/test_utils/hast.rs +++ b/tests/test_utils/hast.rs @@ -6,7 +6,6 @@ // ^-- To do: externalize. extern crate alloc; -extern crate markdown; use alloc::{ fmt, string::{String, ToString}, diff --git a/tests/test_utils/hast_util_to_swc.rs b/tests/test_utils/hast_util_to_swc.rs index bd9b865..ea7ffd1 100644 --- a/tests/test_utils/hast_util_to_swc.rs +++ b/tests/test_utils/hast_util_to_swc.rs @@ -26,8 +26,6 @@ //! TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE //! SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -extern crate swc_common; -extern crate swc_ecma_ast; use crate::test_utils::{ hast, swc::{parse_esm_to_tree, parse_expression_to_tree}, diff --git a/tests/test_utils/mdx_plugin_recma_document.rs b/tests/test_utils/mdx_plugin_recma_document.rs index 34fd5bb..48648b9 100644 --- a/tests/test_utils/mdx_plugin_recma_document.rs +++ b/tests/test_utils/mdx_plugin_recma_document.rs @@ -3,7 +3,6 @@ //! Port of , //! by the same author. -extern crate swc_ecma_ast; use crate::test_utils::{ hast_util_to_swc::Program, swc_utils::{bytepos_to_point, prefix_error_with_point, span_to_position}, diff --git a/tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs b/tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs index 2223d8e..6b058fd 100644 --- a/tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs +++ b/tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs @@ -3,8 +3,6 @@ //! Port of , //! by the same author. -extern crate swc_common; -extern crate swc_ecma_ast; use crate::test_utils::{ hast_util_to_swc::Program, swc_utils::{ diff --git a/tests/test_utils/swc.rs b/tests/test_utils/swc.rs index c958f6f..f30561d 100644 --- a/tests/test_utils/swc.rs +++ b/tests/test_utils/swc.rs @@ -1,8 +1,5 @@ //! Bridge between `markdown-rs` and SWC. -extern crate markdown; -extern crate swc_common; -extern crate swc_ecma_ast; -extern crate swc_ecma_parser; + use crate::test_utils::swc_utils::{bytepos_to_point, prefix_error_with_point, RewriteContext}; use markdown::{mdast::Stop, unist::Point, Location, MdxExpressionKind, MdxSignal}; use swc_common::{ -- cgit