Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

Commit e7c9b17

Browse files
committed
into_iter() -> iter() for arrays
This was previously accepted by the compiler but is being phased out; it will become a hard error in a future rustc release. See rust-lang/rust#66145 >
1 parent a765d70 commit e7c9b17

File tree

1 file changed

+2
-2
lines changed
  • lucet-runtime/lucet-runtime-internals/src/region

1 file changed

+2
-2
lines changed

lucet-runtime/lucet-runtime-internals/src/region/mmap.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl RegionInternal for MmapRegion {
8989
// make the sigstack read/writable
9090
(slot.sigstack, SIGSTKSZ),
9191
]
92-
.into_iter()
92+
.iter()
9393
{
9494
// eprintln!("setting r/w {:p}[{:x}]", *ptr, len);
9595
unsafe { mprotect(*ptr, *len, ProtFlags::PROT_READ | ProtFlags::PROT_WRITE)? };
@@ -138,7 +138,7 @@ impl RegionInternal for MmapRegion {
138138
(slot.globals, slot.limits.globals_size),
139139
(slot.sigstack, SIGSTKSZ),
140140
]
141-
.into_iter()
141+
.iter()
142142
{
143143
// eprintln!("setting none {:p}[{:x}]", *ptr, len);
144144
unsafe {

0 commit comments

Comments
 (0)