diff options
author | Alice Ryhl <alice@ryhl.io> | 2020-09-23 11:04:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-23 11:04:52 +0200 |
commit | 5467f0a573c915d9c1a8c032803109b495784b29 (patch) | |
tree | 759d66947335336429623517e2afdf4f5135d8ef /tokio | |
parent | 555b74c7cdc3a288b0ae16af6e6358f3e3922ca6 (diff) |
io: move #[cfg(not(loom))] to fix warning (#2864)
Diffstat (limited to 'tokio')
-rw-r--r-- | tokio/src/io/stdio_common.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tokio/src/io/stdio_common.rs b/tokio/src/io/stdio_common.rs index 66094d12..a86ca375 100644 --- a/tokio/src/io/stdio_common.rs +++ b/tokio/src/io/stdio_common.rs @@ -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); |