cfg out Queue::new for emscripten

Queue::new is only used is tests atm, which causes warnings on emscripten which does not run queue tests.
This commit is contained in:
JLockerman 2017-10-08 18:40:45 -04:00 committed by GitHub
parent 68341a91ee
commit 41320fa52e

View File

@ -76,7 +76,7 @@ impl<T> Node<T> {
}
impl<T> Queue<T> {
#[cfg(test)]
#[cfg(all(test, not(target_os = "emscripten")))]
/// Creates a new queue.
///
/// This is unsafe as the type system doesn't enforce a single