diff --git a/native/html5ever_nif/src/flat_dom.rs b/native/html5ever_nif/src/flat_dom.rs index e35e3dd..bdac419 100644 --- a/native/html5ever_nif/src/flat_dom.rs +++ b/native/html5ever_nif/src/flat_dom.rs @@ -23,7 +23,7 @@ impl PoolOrVec where T: Clone, { - pub fn new(pool: &Vec) -> Self { + pub fn new(pool: &[T]) -> Self { PoolOrVec::Pool { head: pool.len(), len: 0,