Skip to content

Commit

Permalink
Fix for cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
philss committed Mar 12, 2024
1 parent 7239c60 commit 1cc9857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/html5ever_nif/src/flat_dom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl<T> PoolOrVec<T>
where
T: Clone,
{
pub fn new(pool: &Vec<T>) -> Self {
pub fn new(pool: &[T]) -> Self {
PoolOrVec::Pool {
head: pool.len(),
len: 0,
Expand Down

0 comments on commit 1cc9857

Please sign in to comment.