Skip to content

Commit 41320fa

Browse files
authored
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.
1 parent 68341a9 commit 41320fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sync/mpsc/spsc_queue.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl<T> Node<T> {
7676
}
7777

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

0 commit comments

Comments
 (0)