Skip to content

Commit

Permalink
Update for rust 1.48.0 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
afranchuk committed Jan 23, 2023
1 parent 26591e1 commit 1f74b8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,8 @@ impl MemoryMaps {

let flags = flags
.map(VmFlags::from_str)
.reduce(std::ops::BitOr::bitor)
.unwrap_or_default();
// FUTURE: use `Iterator::reduce`
.fold(VmFlags::NONE, std::ops::BitOr::bitor);

mm.extension.vm_flags = flags;
} else {
Expand Down

0 comments on commit 1f74b8a

Please sign in to comment.