Skip to content

Commit

Permalink
Convert with .into().
Browse files Browse the repository at this point in the history
  • Loading branch information
futursolo committed Jun 24, 2022
1 parent c4e236a commit 9449c35
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/yew-macro/src/props/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl Parse for ElementProps {
}

static BOOLEAN_SET: Lazy<HashSet<&'static str>> = Lazy::new(|| {
vec![
[
// Living Standard
// From: https://html.spec.whatwg.org/#attributes-3
// where `Value` = Boolean attribute
Expand Down Expand Up @@ -95,12 +95,11 @@ static BOOLEAN_SET: Lazy<HashSet<&'static str>> = Lazy::new(|| {
"selected",
"truespeed",
]
.into_iter()
.collect()
.into()
});

static LISTENER_SET: Lazy<HashSet<&'static str>> = Lazy::new(|| {
vec![
[
// Living Standard
// From: https://html.spec.whatwg.org/multipage/webappapis.html#globaleventhandlers
"onabort",
Expand Down Expand Up @@ -206,6 +205,5 @@ static LISTENER_SET: Lazy<HashSet<&'static str>> = Lazy::new(|| {
"ontransitionrun",
"ontransitionstart",
]
.into_iter()
.collect()
.into()
});

0 comments on commit 9449c35

Please sign in to comment.