From 2f082be1f626ea92ab7ede7418413a587f3cb97d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 15 Apr 2023 19:14:04 +0200 Subject: [PATCH] element: Remove unused pub structs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- src/element.rs | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/element.rs b/src/element.rs index 5afd862..b484561 100644 --- a/src/element.rs +++ b/src/element.rs @@ -52,20 +52,11 @@ pub static SCANSION_NS: &str = "https://matthewwild.co.uk/projects/scansion"; /// Strict Comparison marker #[derive(Debug)] -pub struct StrictComparison; +struct StrictComparison; /// Non Strict Comparison marker #[derive(Debug)] -pub struct NonStrictComparison; - -/// To be used during comparison of text nodes -#[derive(Debug, Clone, PartialEq)] -pub enum Space { - /// Keep spaces during comparison - Keep, - /// Dismiss spaces during comparison - Dismiss, -} +struct NonStrictComparison; #[derive(Debug, Clone, PartialEq)] enum NodeType { @@ -75,7 +66,7 @@ enum NodeType { #[derive(Debug, Clone)] struct ScanNode { - pub node: Node, + node: Node, } impl ScanNode { @@ -149,7 +140,7 @@ fn filter_whitespace_nodes(nodes: Vec) -> Vec { #[derive(Debug)] struct ScanNodes { - pub nodes: Vec, + nodes: Vec, _strict: PhantomData, }