Skip to content

Commit

Permalink
io: move #[cfg(not(loom))] to fix warning (tokio-rs#2864)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darksonn committed Sep 23, 2020
1 parent 555b74c commit 5467f0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tokio/src/io/stdio_common.rs
Expand Up @@ -83,6 +83,7 @@ where
}

#[cfg(test)]
#[cfg(not(loom))]
mod tests {
use crate::io::AsyncWriteExt;
use std::io;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5467f0a

Please sign in to comment.