Use IntoIterator for array impl everywhere.
This commit is contained in:
parent
b34cf1a9e1
commit
1acb44f03c
21 changed files with 41 additions and 50 deletions
|
@ -70,10 +70,9 @@ use smallvec::SmallVec;
|
|||
use tracing::{debug, trace};
|
||||
|
||||
macro_rules! arena_vec {
|
||||
($this:expr; $($x:expr),*) => ({
|
||||
let a = [$($x),*];
|
||||
$this.arena.alloc_from_iter(std::array::IntoIter::new(a))
|
||||
});
|
||||
($this:expr; $($x:expr),*) => (
|
||||
$this.arena.alloc_from_iter([$($x),*])
|
||||
);
|
||||
}
|
||||
|
||||
mod asm;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue