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:
parent
68341a91ee
commit
41320fa52e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user