chore: remove comments module
This commit is contained in:
1 parent
c890051f87
commit
d3c3c41d9e
3 files changed
-27
No files matched your search
@@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
mod errors;
|
mod errors;
|
||||||
mod comments;
|
|
||||||
mod component;
|
mod component;
|
||||||
mod element;
|
mod element;
|
||||||
pub mod hot_reload;
|
pub mod hot_reload;
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
use crate::comments::UserComment;
|
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
use proc_macro2::{Span, TokenStream as TokenStream2};
|
use proc_macro2::{Span, TokenStream as TokenStream2};
|
||||||
|
|||||||
Reference in new issue
Block a user