diff options
author | gnzlbg <gonzalobg88@gmail.com> | 2019-05-22 11:50:18 +0200 |
---|---|---|
committer | gnzlbg <gonzalobg88@gmail.com> | 2019-05-22 14:20:13 +0200 |
commit | 7b45788a01e4b016eb9c182a3f40e836ccf0ffb4 (patch) | |
tree | 413d6094e730312ed3d77c1b1f19c67253c614be /libc-test | |
parent | 50f4b671cf84c051e20243f71719b6b296470495 (diff) | |
download | rust-libc-7b45788a01e4b016eb9c182a3f40e836ccf0ffb4.tar.gz |
Refactor OpenBSD-like module into OpenBSD
Diffstat (limited to 'libc-test')
-rw-r--r-- | libc-test/build.rs | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index 03d0b55b39..526c8a82b2 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2815,20 +2815,14 @@ fn test_linux(target: &str) { cfg.skip_fn(|_| true) .skip_const(|_| true) .skip_static(|_| true) - .type_name(move |ty, _is_struct, _is_union| { - ty.to_string() - }); - cfg.skip_struct(move |ty| { - match ty { - "Elf64_Phdr" | "Elf32_Phdr" => false, - _ => true, - } + .type_name(move |ty, _is_struct, _is_union| ty.to_string()); + cfg.skip_struct(move |ty| match ty { + "Elf64_Phdr" | "Elf32_Phdr" => false, + _ => true, }); - cfg.skip_type(move |ty| { - match ty { - "Elf64_Phdr" | "Elf32_Phdr" => false, - _ => true, - } + cfg.skip_type(move |ty| match ty { + "Elf64_Phdr" | "Elf32_Phdr" => false, + _ => true, }); cfg.header("elf.h"); cfg.generate("../src/lib.rs", "linux_elf.rs"); |