Feat: ensure mutabality is okay when not double-using the components

This commit is contained in:
Jonathan Kelley committed 2021-03-12 16:58:30 -05:00
1 parent b3c96a5996
commit 305ff919ef
13 files changed
+120 -114

No files matched your search

+2 -2
View File
@@ -146,7 +146,7 @@ impl<'a> VElement<'a> {
/// An attribute on a DOM node, such as `id="my-thing"` or
/// `href="https://example.com"`.
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]
#[derive(Clone, Debug)]
pub struct Attribute<'a> {
pub name: &'static str,
pub value: &'a str,
@@ -244,7 +244,7 @@ impl NodeKey {
}
}
#[derive(Debug, PartialEq, serde::Serialize, serde::Deserialize)]
#[derive(Debug, PartialEq)]
pub struct VText<'bump> {
pub text: &'bump str,
}