aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_utils
diff options
context:
space:
mode:
authorLibravatar Hocdoc <bernhardberger@gmx.at>2022-11-10 17:00:33 +0100
committerLibravatar GitHub <noreply@github.com>2022-11-10 17:00:33 +0100
commitd5ae7bb13fdb5e855c678ced9b66d26674e08136 (patch)
tree78ebf2605d5552f6dafab2c87489aeca1019c76e /tests/test_utils
parent34ea2841df53a1aafafb01c887965469344552ba (diff)
downloadmarkdown-rs-d5ae7bb13fdb5e855c678ced9b66d26674e08136.tar.gz
markdown-rs-d5ae7bb13fdb5e855c678ced9b66d26674e08136.tar.bz2
markdown-rs-d5ae7bb13fdb5e855c678ced9b66d26674e08136.zip
Remove unneeded `extern crate`s
Closes GH-28. Co-authored-by: Bernhard Berger <bernhardberger3456@gmail.com>
Diffstat (limited to '')
-rw-r--r--tests/test_utils/hast.rs1
-rw-r--r--tests/test_utils/hast_util_to_swc.rs2
-rw-r--r--tests/test_utils/mdx_plugin_recma_document.rs1
-rw-r--r--tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs2
-rw-r--r--tests/test_utils/swc.rs5
5 files changed, 1 insertions, 10 deletions
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 <https://github.com/mdx-js/mdx/blob/main/packages/mdx/lib/plugin/recma-document.js>,
//! 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 <https://github.com/mdx-js/mdx/blob/main/packages/mdx/lib/plugin/recma-jsx-rewrite.js>,
//! 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::{