summaryrefslogtreecommitdiff
path: root/src/diagnostics
diff options
context:
space:
mode:
Diffstat (limited to 'src/diagnostics')
-rw-r--r--src/diagnostics/forbidden_top_level_tag.rs6
-rw-r--r--src/diagnostics/non_self_closing_void_tag.rs3
-rw-r--r--src/diagnostics/non_void_self_closing_tag.rs3
3 files changed, 5 insertions, 7 deletions
diff --git a/src/diagnostics/forbidden_top_level_tag.rs b/src/diagnostics/forbidden_top_level_tag.rs
index 8b5301e..c834e8a 100644
--- a/src/diagnostics/forbidden_top_level_tag.rs
+++ b/src/diagnostics/forbidden_top_level_tag.rs
@@ -1,11 +1,7 @@
use miette::Diagnostic;
use thiserror::Error;
-use crate::{
- diagnostics::{ALLOWED_TOP_LEVEL_TAGS, AstDiagnostic},
- parse::Node,
- tokenize::Span,
-};
+use crate::{ALLOWED_TOP_LEVEL_TAGS, diagnostics::AstDiagnostic, parse::Node, tokenize::Span};
#[derive(Error, Debug, Diagnostic)]
#[error("Forbidden top-level tag is present")]
diff --git a/src/diagnostics/non_self_closing_void_tag.rs b/src/diagnostics/non_self_closing_void_tag.rs
index bfff266..1c987c3 100644
--- a/src/diagnostics/non_self_closing_void_tag.rs
+++ b/src/diagnostics/non_self_closing_void_tag.rs
@@ -2,7 +2,8 @@ use miette::Diagnostic;
use thiserror::Error;
use crate::{
- diagnostics::{TokenDiagnostic, VOID_TAGS},
+ VOID_TAGS,
+ diagnostics::TokenDiagnostic,
tokenize::{Span, Token, TokenType},
};
diff --git a/src/diagnostics/non_void_self_closing_tag.rs b/src/diagnostics/non_void_self_closing_tag.rs
index 8a64be1..2667fa1 100644
--- a/src/diagnostics/non_void_self_closing_tag.rs
+++ b/src/diagnostics/non_void_self_closing_tag.rs
@@ -2,7 +2,8 @@ use miette::Diagnostic;
use thiserror::Error;
use crate::{
- diagnostics::{TokenDiagnostic, VOID_TAGS},
+ VOID_TAGS,
+ diagnostics::TokenDiagnostic,
tokenize::{Span, Token, TokenType},
};