Skip to content

Commit 07f8d12

Browse files
bors[bot]mbrubeck
andauthored
Merge #1313
1313: Update to cfg-if 1.0 r=asomers a=mbrubeck Co-authored-by: Matt Brubeck <[email protected]>
2 parents 477743d + 8a9c534 commit 07f8d12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ exclude = [
1919
[dependencies]
2020
libc = { version = "0.2.78", features = [ "extra_traits" ] }
2121
bitflags = "1.1"
22-
cfg-if = "0.1.10"
22+
cfg-if = "1.0"
2323

2424
[target.'cfg(target_os = "dragonfly")'.build-dependencies]
2525
cc = "1"

test/test_unistd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ cfg_if!{
377377
"./sh", AtFlags::empty());
378378
execve_test_factory!(test_execveat_absolute, execveat, File::open("/").unwrap().into_raw_fd(),
379379
"/system/bin/sh", AtFlags::empty());
380-
} else if #[cfg(all(target_os = "linux"), any(target_arch ="x86_64", target_arch ="x86"))] {
380+
} else if #[cfg(all(target_os = "linux", any(target_arch ="x86_64", target_arch ="x86")))] {
381381
use nix::fcntl::AtFlags;
382382
execve_test_factory!(test_execveat_empty, execveat, File::open("/bin/sh").unwrap().into_raw_fd(),
383383
"", AtFlags::AT_EMPTY_PATH);

0 commit comments

Comments
 (0)