chore: remove comments module

This commit is contained in:
Jonathan Kelley committed 2022-12-28 16:39:24 -05:00
1 parent c890051f87
commit d3c3c41d9e
3 files changed
-27

No files matched your search

-24
View File
@@ -1,24 +0,0 @@
use std::hash::Hash;
use proc_macro2::Span;
// A form of whitespace
#[derive(Debug, Clone)]
pub struct UserComment {
pub span: Span,
pub comment: String,
}
impl PartialEq for UserComment {
fn eq(&self, other: &Self) -> bool {
self.comment == other.comment
}
}
impl Eq for UserComment {}
impl Hash for UserComment {
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
self.comment.hash(state);
}
}
-1
View File
@@ -13,7 +13,6 @@
#[macro_use]
mod errors;
mod comments;
mod component;
mod element;
pub mod hot_reload;
-2
View File
@@ -1,5 +1,3 @@
use crate::comments::UserComment;
use super::*;
use proc_macro2::{Span, TokenStream as TokenStream2};