Fix unused lint for tokio's enter guard in blocking::wait (#1223)

This commit is contained in:
Sean McArthur
2021-03-22 11:26:36 -07:00
committed by GitHub
parent 544282a0b4
commit dada01ef65

View File

@@ -70,7 +70,7 @@ fn enter() {
// Check we aren't already in a runtime // Check we aren't already in a runtime
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
{ {
tokio::runtime::Builder::new_current_thread() let _enter = tokio::runtime::Builder::new_current_thread()
.build() .build()
.expect("build shell runtime") .expect("build shell runtime")
.enter(); .enter();