diff options
author | Igor Matuszewski <igor@sequoia-pgp.org> | 2020-03-17 12:20:03 +0100 |
---|---|---|
committer | Igor Matuszewski <igor@sequoia-pgp.org> | 2020-03-18 17:52:40 +0100 |
commit | d61d93e18a96e05a6340456f3a398c6df24de3f4 (patch) | |
tree | e816f172e2b10a92c39d8381f7762193f6720222 | |
parent | ff72fed0d75d3c1b7617f2a8100844db0ca37e3c (diff) |
ipc: Iterate over a slice directly
-rw-r--r-- | ipc/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/src/lib.rs b/ipc/src/lib.rs index 5cb639ad..97276d3b 100644 --- a/ipc/src/lib.rs +++ b/ipc/src/lib.rs @@ -185,7 +185,7 @@ impl Descriptor { } } else { let cookie = Cookie::new(); - for external in [true, false].iter() { + for external in &[true, false] { // Implement the IPC policy. if policy == core::IPCPolicy::Internal && *external { // Do not try to fork. |