From 17bb2c46eb96ebd6ad17c85dfa5a64f97c298a75 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Tue, 1 Oct 2024 15:50:02 +0900 Subject: [PATCH] revert unnecessary change --- ext/net/raw.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ext/net/raw.rs b/ext/net/raw.rs index 8ad6236d51..f2de760652 100644 --- a/ext/net/raw.rs +++ b/ext/net/raw.rs @@ -333,10 +333,7 @@ pub fn take_network_stream_resource( if let Ok(resource_rc) = resource_table.take::(stream_rid) { // This TCP connection might be used somewhere else. - let resource: crate::io::FullDuplexResource< - tokio::net::tcp::OwnedReadHalf, - tokio::net::tcp::OwnedWriteHalf, - > = Rc::try_unwrap(resource_rc) + let resource = Rc::try_unwrap(resource_rc) .map_err(|_| bad_resource("TCP stream is currently in use"))?; let (read_half, write_half) = resource.into_inner(); let tcp_stream = read_half.reunite(write_half)?;