We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NullSocket
1 parent 0c8198c commit 4711272Copy full SHA for 4711272
src/fd/socket/vsock.rs
@@ -51,7 +51,7 @@ impl NullSocket {
51
}
52
53
#[async_trait]
54
-impl ObjectInterface for async_lock::RwLock<NullSocket> {}
+impl ObjectInterface for NullSocket {}
55
56
#[derive(Debug)]
57
pub struct Socket {
@@ -444,7 +444,7 @@ impl ObjectInterface for async_lock::RwLock<Socket> {
444
445
async fn accept(&self) -> io::Result<(Arc<dyn ObjectInterface>, Endpoint)> {
446
let (handle, endpoint) = self.write().await.accept().await?;
447
- Ok((Arc::new(async_lock::RwLock::new(handle)), endpoint))
+ Ok((Arc::new(handle), endpoint))
448
449
450
async fn getpeername(&self) -> io::Result<Option<Endpoint>> {
0 commit comments