mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-25 00:00:18 +02:00
io: move #[cfg(not(loom))] to fix warning (#2864)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user