Skip to content

Commit

Permalink
style: update
Browse files Browse the repository at this point in the history
  • Loading branch information
pouriya committed Sep 5, 2023
1 parent 6b010e5 commit 8f7d238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/yew/src/html/classes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ impl<T: Into<Classes> + Clone> From<&[T]> for Classes {
}
}

impl<T: Into<Classes>, const SIZE: usize> From<[T;SIZE]> for Classes {
fn from(t: [T;SIZE]) -> Self {
impl<T: Into<Classes>, const SIZE: usize> From<[T; SIZE]> for Classes {
fn from(t: [T; SIZE]) -> Self {
t.into_iter().collect()
}
}
Expand Down

0 comments on commit 8f7d238

Please sign in to comment.