Skip to content

Commit e0cf211

Browse files
doublegateclaude
andcommitted
fix(ci): resolve test compilation warnings on non-Linux platforms
- Move ctx variable inside #[cfg(target_os = "linux")] block in test_completion_result_types() to avoid unused variable warning - Add separate #[cfg(not(target_os = "linux"))] block for non-Linux platforms with prefixed _ctx variable - Addresses CI failures on Windows and macOS builds 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 50eb24e commit e0cf211

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

crates/wraith-transport/src/io_uring.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,10 +568,9 @@ mod tests {
568568

569569
#[test]
570570
fn test_completion_result_types() {
571-
let mut ctx = IoUringContext::new(64).unwrap();
572-
573571
#[cfg(target_os = "linux")]
574572
{
573+
let mut ctx = IoUringContext::new(64).unwrap();
575574
ctx.submit_read(1, 0, 1024).unwrap();
576575
ctx.submit_write(2, 0, &[0u8; 2048]).unwrap();
577576
ctx.submit_fsync(3).unwrap();
@@ -587,5 +586,11 @@ mod tests {
587586
}
588587
}
589588
}
589+
590+
// On non-Linux, just verify the stub context works
591+
#[cfg(not(target_os = "linux"))]
592+
{
593+
let _ctx = IoUringContext::new(64).unwrap();
594+
}
590595
}
591596
}

0 commit comments

Comments
 (0)