diff options
author | 2019-12-03 20:49:57 +0100 | |
---|---|---|
committer | 2019-12-04 14:39:20 +0100 | |
commit | 5a974fe72d9bbf49dc7cdb9a114a6bb2e796469b (patch) | |
tree | 529019efc34c72a93a0787635bf299dec7742812 /winit/src/lib.rs | |
parent | d1eb187e2673150b6c3f9fed0c15a1804ce0d75b (diff) | |
download | iced-5a974fe72d9bbf49dc7cdb9a114a6bb2e796469b.tar.gz iced-5a974fe72d9bbf49dc7cdb9a114a6bb2e796469b.tar.bz2 iced-5a974fe72d9bbf49dc7cdb9a114a6bb2e796469b.zip |
Use cfg and path attribute instead of cfg_attr for IntelliJ Rust support
Diffstat (limited to 'winit/src/lib.rs')
-rw-r--r-- | winit/src/lib.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/winit/src/lib.rs b/winit/src/lib.rs index 00d200f9..df3a6997 100644 --- a/winit/src/lib.rs +++ b/winit/src/lib.rs @@ -35,8 +35,11 @@ pub use settings::Settings; // We disable debug capabilities on release builds unless the `debug` feature // is explicitly enabled. -#[cfg_attr(feature = "debug", path = "debug/basic.rs")] -#[cfg_attr(not(feature = "debug"), path = "debug/null.rs")] +#[cfg(feature = "debug")] +#[path = "debug/basic.rs"] +mod debug; +#[cfg(not(feature = "debug"))] +#[path = "debug/null.rs"] mod debug; use debug::Debug; |