mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-14 00:27:12 +00:00
chore: remove unused debug info from HtmlElement
This commit is contained in:
parent
ff28544fb2
commit
f28dac1093
5 changed files with 3 additions and 46 deletions
|
@ -17,8 +17,6 @@ where
|
||||||
rndr: PhantomData,
|
rndr: PhantomData,
|
||||||
attributes: (),
|
attributes: (),
|
||||||
children: (),
|
children: (),
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at: std::panic::Location::caller(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,8 +35,6 @@ macro_rules! html_element_inner {
|
||||||
attributes: (),
|
attributes: (),
|
||||||
children: (),
|
children: (),
|
||||||
rndr: PhantomData,
|
rndr: PhantomData,
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at: std::panic::Location::caller()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,17 +61,12 @@ macro_rules! html_element_inner {
|
||||||
At: NextTuple,
|
At: NextTuple,
|
||||||
<At as NextTuple>::Output<Attr<$crate::html::attribute::[<$attr:camel>], V, Rndr>>: Attribute<Rndr>,
|
<At as NextTuple>::Output<Attr<$crate::html::attribute::[<$attr:camel>], V, Rndr>>: Attribute<Rndr>,
|
||||||
{
|
{
|
||||||
let HtmlElement { tag, rndr, children, attributes,
|
let HtmlElement { tag, rndr, children, attributes } = self;
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at
|
|
||||||
} = self;
|
|
||||||
HtmlElement {
|
HtmlElement {
|
||||||
tag,
|
tag,
|
||||||
rndr,
|
rndr,
|
||||||
children,
|
children,
|
||||||
attributes: attributes.next_tuple($crate::html::attribute::$attr(value)),
|
attributes: attributes.next_tuple($crate::html::attribute::$attr(value)),
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)*
|
)*
|
||||||
|
@ -161,8 +154,6 @@ macro_rules! html_self_closing_elements {
|
||||||
children: (),
|
children: (),
|
||||||
rndr: PhantomData,
|
rndr: PhantomData,
|
||||||
tag: [<$tag:camel>],
|
tag: [<$tag:camel>],
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at: std::panic::Location::caller()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -191,16 +182,12 @@ macro_rules! html_self_closing_elements {
|
||||||
|
|
||||||
{
|
{
|
||||||
let HtmlElement { tag, rndr, children, attributes,
|
let HtmlElement { tag, rndr, children, attributes,
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at
|
|
||||||
} = self;
|
} = self;
|
||||||
HtmlElement {
|
HtmlElement {
|
||||||
tag,
|
tag,
|
||||||
rndr,
|
rndr,
|
||||||
children,
|
children,
|
||||||
attributes: attributes.next_tuple($crate::html::attribute::$attr(value)),
|
attributes: attributes.next_tuple($crate::html::attribute::$attr(value)),
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)*
|
)*
|
||||||
|
|
|
@ -32,8 +32,6 @@ pub struct HtmlElement<E, At, Ch, Rndr> {
|
||||||
pub(crate) rndr: PhantomData<Rndr>,
|
pub(crate) rndr: PhantomData<Rndr>,
|
||||||
pub(crate) attributes: At,
|
pub(crate) attributes: At,
|
||||||
pub(crate) children: Ch,
|
pub(crate) children: Ch,
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
pub(crate) defined_at: &'static std::panic::Location<'static>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<E: Clone, At: Clone, Ch: Clone, Rndr> Clone
|
impl<E: Clone, At: Clone, Ch: Clone, Rndr> Clone
|
||||||
|
@ -45,8 +43,6 @@ impl<E: Clone, At: Clone, Ch: Clone, Rndr> Clone
|
||||||
rndr: PhantomData,
|
rndr: PhantomData,
|
||||||
attributes: self.attributes.clone(),
|
attributes: self.attributes.clone(),
|
||||||
children: self.children.clone(),
|
children: self.children.clone(),
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at: self.defined_at,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,16 +81,12 @@ where
|
||||||
rndr,
|
rndr,
|
||||||
attributes,
|
attributes,
|
||||||
children,
|
children,
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at,
|
|
||||||
} = self;
|
} = self;
|
||||||
HtmlElement {
|
HtmlElement {
|
||||||
tag,
|
tag,
|
||||||
rndr,
|
rndr,
|
||||||
attributes,
|
attributes,
|
||||||
children: children.next_tuple(child),
|
children: children.next_tuple(child),
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -122,16 +114,12 @@ where
|
||||||
attributes,
|
attributes,
|
||||||
children,
|
children,
|
||||||
rndr,
|
rndr,
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at,
|
|
||||||
} = self;
|
} = self;
|
||||||
HtmlElement {
|
HtmlElement {
|
||||||
tag,
|
tag,
|
||||||
attributes: attributes.add_any_attr(attr),
|
attributes: attributes.add_any_attr(attr),
|
||||||
children,
|
children,
|
||||||
rndr,
|
rndr,
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -262,8 +250,6 @@ where
|
||||||
rndr: PhantomData,
|
rndr: PhantomData,
|
||||||
attributes,
|
attributes,
|
||||||
children,
|
children,
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at: self.defined_at,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,17 +26,12 @@ macro_rules! mathml_global {
|
||||||
At: NextTuple,
|
At: NextTuple,
|
||||||
<At as NextTuple>::Output<Attr<$crate::html::attribute::[<$attr:camel>], V, Rndr>>: Attribute<Rndr>,
|
<At as NextTuple>::Output<Attr<$crate::html::attribute::[<$attr:camel>], V, Rndr>>: Attribute<Rndr>,
|
||||||
{
|
{
|
||||||
let HtmlElement { tag, rndr, children, attributes,
|
let HtmlElement { tag, rndr, children, attributes } = self;
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at
|
|
||||||
} = self;
|
|
||||||
HtmlElement {
|
HtmlElement {
|
||||||
tag,
|
tag,
|
||||||
rndr,
|
rndr,
|
||||||
children,
|
children,
|
||||||
attributes: attributes.next_tuple($crate::html::attribute::$attr(value)),
|
attributes: attributes.next_tuple($crate::html::attribute::$attr(value)),
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -59,8 +54,6 @@ macro_rules! mathml_elements {
|
||||||
attributes: (),
|
attributes: (),
|
||||||
children: (),
|
children: (),
|
||||||
rndr: PhantomData,
|
rndr: PhantomData,
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at: std::panic::Location::caller()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,17 +88,12 @@ macro_rules! mathml_elements {
|
||||||
At: NextTuple,
|
At: NextTuple,
|
||||||
<At as NextTuple>::Output<Attr<$crate::html::attribute::[<$attr:camel>], V, Rndr>>: Attribute<Rndr>,
|
<At as NextTuple>::Output<Attr<$crate::html::attribute::[<$attr:camel>], V, Rndr>>: Attribute<Rndr>,
|
||||||
{
|
{
|
||||||
let HtmlElement { tag, rndr, children, attributes,
|
let HtmlElement { tag, rndr, children, attributes } = self;
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at
|
|
||||||
} = self;
|
|
||||||
HtmlElement {
|
HtmlElement {
|
||||||
tag,
|
tag,
|
||||||
rndr,
|
rndr,
|
||||||
children,
|
children,
|
||||||
attributes: attributes.next_tuple($crate::html::attribute::$attr(value)),
|
attributes: attributes.next_tuple($crate::html::attribute::$attr(value)),
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)*
|
)*
|
||||||
|
|
|
@ -27,8 +27,6 @@ macro_rules! svg_elements {
|
||||||
attributes: (),
|
attributes: (),
|
||||||
children: (),
|
children: (),
|
||||||
rndr: PhantomData,
|
rndr: PhantomData,
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
defined_at: std::panic::Location::caller()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue