io: move #[cfg(not(loom))] to fix warning (#2864)

This commit is contained in:
Alice Ryhl
2020-09-23 11:04:52 +02:00
committed by GitHub
parent 555b74c7cd
commit 5467f0a573
+2 -1
View File
@@ -83,6 +83,7 @@ where
}
#[cfg(test)]
#[cfg(not(loom))]
mod tests {
use crate::io::AsyncWriteExt;
use std::io;
@@ -114,8 +115,8 @@ mod tests {
Poll::Ready(Ok(()))
}
}
#[test]
#[cfg(not(loom))]
fn test_splitter() {
let data = str::repeat("", MAX_BUF);
let mut wr = super::SplitByUtf8BoundaryIfWindows::new(MockWriter);