Fix compile warnings when no features are selected

This commit is contained in:
Dzmitry Malyshau
2019-06-13 11:26:44 -04:00
parent 745bebcbb5
commit aca3f1e64d
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ mod track;
pub use self::binding_model::*;
pub use self::command::*;
pub use self::device::*;
#[cfg(feature = "remote")]
#[cfg(not(feature = "local"))]
pub use self::hub::{IdentityManager, Registry, HUB};
pub use self::instance::*;
pub use self::pipeline::*;

View File

@@ -181,7 +181,7 @@ pub struct TextureDescriptor {
#[derive(Debug)]
pub(crate) enum TexturePlacement<B: hal::Backend> {
#[cfg_attr(feature = "remote", allow(unused))]
#[cfg_attr(not(feature = "local"), allow(unused))]
SwapChain(SwapChainLink<Mutex<SwapImageEpoch>>),
Memory(MemoryBlock<B>),
Void,