diff options
author | Hocdoc <bernhardberger@gmx.at> | 2022-11-10 17:00:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 17:00:33 +0100 |
commit | d5ae7bb13fdb5e855c678ced9b66d26674e08136 (patch) | |
tree | 78ebf2605d5552f6dafab2c87489aeca1019c76e | |
parent | 34ea2841df53a1aafafb01c887965469344552ba (diff) | |
download | markdown-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 '')
66 files changed, 3 insertions, 100 deletions
diff --git a/Untitled.txt b/Untitled.txt index fb1e53c..90e2f5e 100644 --- a/Untitled.txt +++ b/Untitled.txt @@ -6,7 +6,6 @@ micromark.js: `atLineEnding` in html (text) should always eat arbitrary whitespa ```rs // --------------------- // Useful helper: -extern crate std; use std::println; use alloc::string::String; diff --git a/benches/bench.rs b/benches/bench.rs index 5ba0e16..0eb9f0b 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -1,6 +1,4 @@ -#[macro_use] -extern crate criterion; -use criterion::{BenchmarkId, Criterion}; +use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion}; use std::fs; fn readme(c: &mut Criterion) { @@ -1,4 +1,3 @@ -extern crate reqwest; use regex::Regex; use std::fs; @@ -67,7 +66,6 @@ async fn commonmark() { // > 👉 **Important**: this module is generated by `build.rs`. // > It is generate from the latest CommonMark website. -extern crate markdown; use markdown::{{to_html_with_options, CompileOptions, Options}}; use pretty_assertions::assert_eq; diff --git a/examples/lib.rs b/examples/lib.rs index 6d156df..3c76022 100644 --- a/examples/lib.rs +++ b/examples/lib.rs @@ -1,5 +1,3 @@ -extern crate markdown; - fn main() -> Result<(), String> { // Turn on debugging. // You can show it with `RUST_LOG=debug cargo run --example lib` diff --git a/fuzz/fuzz_targets/markdown.rs b/fuzz/fuzz_targets/markdown.rs index c058637..c86a7db 100644 --- a/fuzz/fuzz_targets/markdown.rs +++ b/fuzz/fuzz_targets/markdown.rs @@ -1,14 +1,10 @@ #![no_main] use libfuzzer_sys::fuzz_target; -extern crate markdown; fuzz_target!(|data: &[u8]| { if let Ok(s) = std::str::from_utf8(data) { let _ = markdown::to_html(s); - let _ = markdown::to_html_with_options( - s, - &markdown::Options::gfm() - ); + let _ = markdown::to_html_with_options(s, &markdown::Options::gfm()); let _ = markdown::to_mdast(s, &markdown::ParseOptions::default()); let _ = markdown::to_mdast(s, &markdown::ParseOptions::gfm()); } @@ -90,8 +90,6 @@ cargo add markdown@1.0.0-alpha.3 ## Use ```rs -extern crate markdown; - fn main() { println!("{}", markdown::to_html("## Hello, *world*!")); } @@ -106,8 +104,6 @@ Yields: Extensions (in this case GFM): ```rs -extern crate markdown; - fn main() -> Result<(), String> { println!( "{}", @@ -136,8 +132,6 @@ Yields: Syntax tree ([mdast][]): ```rs -extern crate markdown; - fn main() -> Result<(), String> { println!( "{:?}", diff --git a/src/configuration.rs b/src/configuration.rs index d6297e3..fe5698b 100644 --- a/src/configuration.rs +++ b/src/configuration.rs @@ -1236,7 +1236,6 @@ impl Options { #[cfg(test)] mod tests { - extern crate std; use super::*; use crate::util::mdx::Signal; use alloc::format; diff --git a/src/util/line_ending.rs b/src/util/line_ending.rs index a018fe8..be4d8a3 100644 --- a/src/util/line_ending.rs +++ b/src/util/line_ending.rs @@ -1,5 +1,3 @@ -extern crate alloc; - use alloc::{str::FromStr, string::String}; /// Type of line endings in markdown. @@ -82,7 +80,6 @@ impl FromStr for LineEnding { #[cfg(test)] mod tests { - extern crate std; use super::*; #[test] diff --git a/src/util/mdx.rs b/src/util/mdx.rs index 882f3f5..ce5c9d4 100644 --- a/src/util/mdx.rs +++ b/src/util/mdx.rs @@ -1,5 +1,3 @@ -extern crate alloc; - use alloc::string::String; /// Signal used as feedback when parsing MDX ESM/expressions. @@ -89,7 +87,6 @@ pub type ExpressionParse = dyn Fn(&str, &ExpressionKind) -> Signal; #[cfg(test)] mod tests { - extern crate std; use super::*; use alloc::boxed::Box; diff --git a/tests/attention.rs b/tests/attention.rs index d79432d..61d038a 100644 --- a/tests/attention.rs +++ b/tests/attention.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Emphasis, Node, Paragraph, Root, Strong, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/autolink.rs b/tests/autolink.rs index 64f94e9..1f4fab5 100644 --- a/tests/autolink.rs +++ b/tests/autolink.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Link, Node, Paragraph, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/block_quote.rs b/tests/block_quote.rs index 5d765e8..b6fcf6a 100644 --- a/tests/block_quote.rs +++ b/tests/block_quote.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{BlockQuote, Node, Paragraph, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/character_escape.rs b/tests/character_escape.rs index 41cc68d..e062f28 100644 --- a/tests/character_escape.rs +++ b/tests/character_escape.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Node, Paragraph, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/character_reference.rs b/tests/character_reference.rs index ab253c4..03282a1 100644 --- a/tests/character_reference.rs +++ b/tests/character_reference.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Node, Paragraph, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/code_fenced.rs b/tests/code_fenced.rs index 73bcb9a..403a893 100644 --- a/tests/code_fenced.rs +++ b/tests/code_fenced.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Code, Node, Root}, to_html, to_html_with_options, to_mdast, diff --git a/tests/code_indented.rs b/tests/code_indented.rs index 66046c4..1bd5726 100644 --- a/tests/code_indented.rs +++ b/tests/code_indented.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Code, Node, Root}, to_html, to_html_with_options, to_mdast, diff --git a/tests/code_text.rs b/tests/code_text.rs index 482c46f..47d8b19 100644 --- a/tests/code_text.rs +++ b/tests/code_text.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{InlineCode, Node, Paragraph, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/commonmark.rs b/tests/commonmark.rs index 7d62016..30f62ca 100644 --- a/tests/commonmark.rs +++ b/tests/commonmark.rs @@ -3,7 +3,6 @@ // > 👉 **Important**: this module is generated by `build.rs`. // > It is generate from the latest CommonMark website. -extern crate markdown; use markdown::{to_html_with_options, CompileOptions, Options}; use pretty_assertions::assert_eq; diff --git a/tests/definition.rs b/tests/definition.rs index 46d9cf5..0279d4d 100644 --- a/tests/definition.rs +++ b/tests/definition.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Definition, Node, Root}, to_html, to_html_with_options, to_mdast, diff --git a/tests/frontmatter.rs b/tests/frontmatter.rs index 7e647d9..82a928a 100644 --- a/tests/frontmatter.rs +++ b/tests/frontmatter.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Node, Root, Toml, Yaml}, to_html, to_html_with_options, to_mdast, diff --git a/tests/fuzz.rs b/tests/fuzz.rs index e6816e6..d1a87b7 100644 --- a/tests/fuzz.rs +++ b/tests/fuzz.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{mdast, to_html, to_html_with_options, to_mdast, Options}; use pretty_assertions::assert_eq; diff --git a/tests/gfm_autolink_literal.rs b/tests/gfm_autolink_literal.rs index cb38f29..fb46c5c 100644 --- a/tests/gfm_autolink_literal.rs +++ b/tests/gfm_autolink_literal.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Link, Node, Paragraph, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/gfm_footnote.rs b/tests/gfm_footnote.rs index e036857..019db2e 100644 --- a/tests/gfm_footnote.rs +++ b/tests/gfm_footnote.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{FootnoteDefinition, FootnoteReference, Node, Paragraph, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/gfm_strikethrough.rs b/tests/gfm_strikethrough.rs index b8e30a6..eb7feb3 100644 --- a/tests/gfm_strikethrough.rs +++ b/tests/gfm_strikethrough.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Delete, Node, Paragraph, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/gfm_table.rs b/tests/gfm_table.rs index c8f20ef..0ea1fa7 100644 --- a/tests/gfm_table.rs +++ b/tests/gfm_table.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{AlignKind, InlineCode, Node, Root, Table, TableCell, TableRow, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/gfm_tagfilter.rs b/tests/gfm_tagfilter.rs index e75b96b..0c835e9 100644 --- a/tests/gfm_tagfilter.rs +++ b/tests/gfm_tagfilter.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{to_html_with_options, CompileOptions, Options}; use pretty_assertions::assert_eq; diff --git a/tests/gfm_task_list_item.rs b/tests/gfm_task_list_item.rs index 7c68b21..638206f 100644 --- a/tests/gfm_task_list_item.rs +++ b/tests/gfm_task_list_item.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{List, ListItem, Node, Paragraph, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/hard_break_escape.rs b/tests/hard_break_escape.rs index bd6830c..3a02389 100644 --- a/tests/hard_break_escape.rs +++ b/tests/hard_break_escape.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Break, Node, Paragraph, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/hard_break_trailing.rs b/tests/hard_break_trailing.rs index ee8f7fc..6cdbfc8 100644 --- a/tests/hard_break_trailing.rs +++ b/tests/hard_break_trailing.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Break, Node, Paragraph, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/heading_atx.rs b/tests/heading_atx.rs index 3edcb55..944bfc5 100644 --- a/tests/heading_atx.rs +++ b/tests/heading_atx.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Heading, Node, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/heading_setext.rs b/tests/heading_setext.rs index 8cf0863..29e8dd2 100644 --- a/tests/heading_setext.rs +++ b/tests/heading_setext.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Heading, Node, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/html_flow.rs b/tests/html_flow.rs index d79f031..53a3436 100644 --- a/tests/html_flow.rs +++ b/tests/html_flow.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Html, Node, Root}, to_html, to_html_with_options, to_mdast, diff --git a/tests/html_text.rs b/tests/html_text.rs index 43d2cf2..942c568 100644 --- a/tests/html_text.rs +++ b/tests/html_text.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Html, Node, Paragraph, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/image.rs b/tests/image.rs index 2fff14c..055ac62 100644 --- a/tests/image.rs +++ b/tests/image.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Definition, Image, ImageReference, Node, Paragraph, ReferenceKind, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/link_reference.rs b/tests/link_reference.rs index 310cf40..40ecb1b 100644 --- a/tests/link_reference.rs +++ b/tests/link_reference.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Definition, LinkReference, Node, Paragraph, ReferenceKind, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/link_resource.rs b/tests/link_resource.rs index 959d07f..673b19b 100644 --- a/tests/link_resource.rs +++ b/tests/link_resource.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Link, Node, Paragraph, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/list.rs b/tests/list.rs index cb4019b..e8c42e8 100644 --- a/tests/list.rs +++ b/tests/list.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{List, ListItem, Node, Paragraph, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/math_flow.rs b/tests/math_flow.rs index 18795ab..04b7fb5 100644 --- a/tests/math_flow.rs +++ b/tests/math_flow.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Math, Node, Root}, to_html, to_html_with_options, to_mdast, diff --git a/tests/math_text.rs b/tests/math_text.rs index 4b6fb6a..598853c 100644 --- a/tests/math_text.rs +++ b/tests/math_text.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{InlineMath, Node, Paragraph, Root, Text}, to_html, to_html_with_options, to_mdast, diff --git a/tests/mdx_esm.rs b/tests/mdx_esm.rs index b64a5e9..7176075 100644 --- a/tests/mdx_esm.rs +++ b/tests/mdx_esm.rs @@ -1,4 +1,3 @@ -extern crate markdown; mod test_utils; use markdown::{ mdast::{MdxjsEsm, Node, Root}, diff --git a/tests/mdx_expression_flow.rs b/tests/mdx_expression_flow.rs index 559e08c..b5e0c4f 100644 --- a/tests/mdx_expression_flow.rs +++ b/tests/mdx_expression_flow.rs @@ -1,4 +1,3 @@ -extern crate markdown; mod test_utils; use markdown::{ mdast::{MdxFlowExpression, Node, Root}, diff --git a/tests/mdx_expression_text.rs b/tests/mdx_expression_text.rs index 4ab26dd..0fccb0f 100644 --- a/tests/mdx_expression_text.rs +++ b/tests/mdx_expression_text.rs @@ -1,4 +1,3 @@ -extern crate markdown; mod test_utils; use markdown::{ mdast::{MdxTextExpression, Node, Paragraph, Root, Text}, diff --git a/tests/mdx_jsx_flow.rs b/tests/mdx_jsx_flow.rs index 219b0b5..3b2c79d 100644 --- a/tests/mdx_jsx_flow.rs +++ b/tests/mdx_jsx_flow.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{List, ListItem, MdxJsxFlowElement, Node, Paragraph, Root, Text}, to_html_with_options, to_mdast, diff --git a/tests/mdx_jsx_text.rs b/tests/mdx_jsx_text.rs index a64df64..0520ad2 100644 --- a/tests/mdx_jsx_text.rs +++ b/tests/mdx_jsx_text.rs @@ -1,4 +1,3 @@ -extern crate markdown; mod test_utils; use markdown::{ mdast::{ diff --git a/tests/mdx_swc.rs b/tests/mdx_swc.rs index a24864f..831e64f 100644 --- a/tests/mdx_swc.rs +++ b/tests/mdx_swc.rs @@ -1,4 +1,3 @@ -extern crate markdown; mod test_utils; use markdown::{to_html_with_options, Constructs, Options, ParseOptions}; use pretty_assertions::assert_eq; diff --git a/tests/misc_bom.rs b/tests/misc_bom.rs index f15eae2..1967ae3 100644 --- a/tests/misc_bom.rs +++ b/tests/misc_bom.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::to_html; use pretty_assertions::assert_eq; diff --git a/tests/misc_dangerous_html.rs b/tests/misc_dangerous_html.rs index 0610d23..516da65 100644 --- a/tests/misc_dangerous_html.rs +++ b/tests/misc_dangerous_html.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{to_html, to_html_with_options, CompileOptions, Options}; use pretty_assertions::assert_eq; diff --git a/tests/misc_dangerous_protocol.rs b/tests/misc_dangerous_protocol.rs index 1703d60..c055054 100644 --- a/tests/misc_dangerous_protocol.rs +++ b/tests/misc_dangerous_protocol.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::to_html; use pretty_assertions::assert_eq; diff --git a/tests/misc_default_line_ending.rs b/tests/misc_default_line_ending.rs index 65c5867..10a8293 100644 --- a/tests/misc_default_line_ending.rs +++ b/tests/misc_default_line_ending.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{to_html, to_html_with_options, CompileOptions, LineEnding, Options}; use pretty_assertions::assert_eq; diff --git a/tests/misc_line_ending.rs b/tests/misc_line_ending.rs index ed91265..355c8d4 100644 --- a/tests/misc_line_ending.rs +++ b/tests/misc_line_ending.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{to_html, to_html_with_options, CompileOptions, Options}; use pretty_assertions::assert_eq; diff --git a/tests/misc_soft_break.rs b/tests/misc_soft_break.rs index 3d00464..1342eee 100644 --- a/tests/misc_soft_break.rs +++ b/tests/misc_soft_break.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::to_html; use pretty_assertions::assert_eq; diff --git a/tests/misc_tabs.rs b/tests/misc_tabs.rs index 681f0b2..1ad5127 100644 --- a/tests/misc_tabs.rs +++ b/tests/misc_tabs.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{to_html, to_html_with_options, CompileOptions, Options}; use pretty_assertions::assert_eq; diff --git a/tests/misc_url.rs b/tests/misc_url.rs index 531b4ec..cc0f9f2 100644 --- a/tests/misc_url.rs +++ b/tests/misc_url.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::to_html; use pretty_assertions::assert_eq; diff --git a/tests/misc_zero.rs b/tests/misc_zero.rs index 751a632..dbe0836 100644 --- a/tests/misc_zero.rs +++ b/tests/misc_zero.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::to_html; use pretty_assertions::assert_eq; 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::{ diff --git a/tests/text.rs b/tests/text.rs index 9c2b0a0..5c5f898 100644 --- a/tests/text.rs +++ b/tests/text.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::to_html; use pretty_assertions::assert_eq; diff --git a/tests/thematic_break.rs b/tests/thematic_break.rs index 35fa2e0..4721d49 100644 --- a/tests/thematic_break.rs +++ b/tests/thematic_break.rs @@ -1,4 +1,3 @@ -extern crate markdown; use markdown::{ mdast::{Node, Root, ThematicBreak}, to_html, to_html_with_options, to_mdast, diff --git a/tests/xxx_hast_util_to_swc.rs b/tests/xxx_hast_util_to_swc.rs index 138dbe3..f58eb65 100644 --- a/tests/xxx_hast_util_to_swc.rs +++ b/tests/xxx_hast_util_to_swc.rs @@ -1,7 +1,3 @@ -extern crate markdown; -extern crate swc_common; -extern crate swc_ecma_ast; -extern crate swc_ecma_codegen; mod test_utils; use pretty_assertions::assert_eq; use test_utils::{ diff --git a/tests/xxx_mdast_util_to_hast.rs b/tests/xxx_mdast_util_to_hast.rs index dd66226..ffee44a 100644 --- a/tests/xxx_mdast_util_to_hast.rs +++ b/tests/xxx_mdast_util_to_hast.rs @@ -1,4 +1,3 @@ -extern crate markdown; mod test_utils; use markdown::mdast; use pretty_assertions::assert_eq; diff --git a/tests/xxx_mdx.rs b/tests/xxx_mdx.rs index 3c73c62..eb8a211 100644 --- a/tests/xxx_mdx.rs +++ b/tests/xxx_mdx.rs @@ -1,7 +1,3 @@ -extern crate markdown; -extern crate swc_common; -extern crate swc_ecma_ast; -extern crate swc_ecma_codegen; mod test_utils; use pretty_assertions::assert_eq; use test_utils::mdx::{mdx, JsxRuntime, Options}; diff --git a/tests/xxx_mdx_plugin_recma_document.rs b/tests/xxx_mdx_plugin_recma_document.rs index 9fdd053..c534d58 100644 --- a/tests/xxx_mdx_plugin_recma_document.rs +++ b/tests/xxx_mdx_plugin_recma_document.rs @@ -1,7 +1,3 @@ -extern crate markdown; -extern crate swc_common; -extern crate swc_ecma_ast; -extern crate swc_ecma_codegen; mod test_utils; use markdown::{to_mdast, Location, ParseOptions}; use pretty_assertions::assert_eq; diff --git a/tests/xxx_mdx_plugin_recma_jsx_rewrite.rs b/tests/xxx_mdx_plugin_recma_jsx_rewrite.rs index d78e5c8..77c794a 100644 --- a/tests/xxx_mdx_plugin_recma_jsx_rewrite.rs +++ b/tests/xxx_mdx_plugin_recma_jsx_rewrite.rs @@ -1,7 +1,3 @@ -extern crate markdown; -extern crate swc_common; -extern crate swc_ecma_ast; -extern crate swc_ecma_codegen; mod test_utils; use markdown::{to_mdast, Location, ParseOptions}; use pretty_assertions::assert_eq; |