mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Fix cfg_if usage
This commit is contained in:
parent
0498da9a3d
commit
ebb648d4fb
@ -25,7 +25,7 @@ use libc::{c_int, c_char, c_void};
|
||||
|
||||
const TMPBUF_SZ: usize = 128;
|
||||
|
||||
cfg_if! {
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(target_os = "redox")] {
|
||||
const PATH_SEPARATOR: u8 = b';';
|
||||
} else {
|
||||
|
@ -12,7 +12,7 @@ use crate::collections::BTreeMap;
|
||||
|
||||
use libc::{c_int, gid_t, uid_t, c_char, EXIT_SUCCESS, EXIT_FAILURE};
|
||||
|
||||
cfg_if! {
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(target_os = "redox")] {
|
||||
const DEV_NULL: &'static str = "null:\0";
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user