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 --- src/configuration.rs | 1 - src/util/line_ending.rs | 3 --- src/util/mdx.rs | 3 --- 3 files changed, 7 deletions(-) (limited to 'src') 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; -- cgit