Skip to content

Commit

Permalink
fmt: cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
LastLeaf committed Oct 17, 2024
1 parent 1c95395 commit ca67f22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion glass-easel-template-compiler/src/parse/tag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,9 @@ impl Element {
(_, "slot") => AttrPrefixKind::Slot,
(ElementKind::Normal { .. }, "class") => AttrPrefixKind::ClassString,
(ElementKind::Normal { .. }, "style") => AttrPrefixKind::StyleString,
(ElementKind::Normal { .. }, x) | (ElementKind::Slot { .. }, x) if x.starts_with("data-") => {
(ElementKind::Normal { .. }, x) | (ElementKind::Slot { .. }, x)
if x.starts_with("data-") =>
{
AttrPrefixKind::DataHyphen
}
_ => AttrPrefixKind::Normal,
Expand Down

0 comments on commit ca67f22

Please sign in to comment.