Skip to content

Commit 49f8ed8

Browse files
committed
suppress unused variable warning
1 parent 5dcdb5e commit 49f8ed8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: tokio/src/macros/support.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ cfg_macros! {
1212
#[cfg(feature = "rt")]
1313
{ crate::task::poll_budget_available(cx) }
1414
#[cfg(not(feature = "rt"))]
15-
{ std::task::Poll::Ready(()) }
15+
{
16+
// Use the `cx` argument to suppress unused variable warnings
17+
let _ = cx;
18+
std::task::Poll::Ready(())
19+
}
1620
}
1721
}
1822

0 commit comments

Comments
 (0)