make wrapper source value publicly accessible so we can use associated non-method functions for Arc such as std::sync::get_mut(this: &mut std::sync::Arc<T>)

This commit is contained in:
narodnik 2020-07-05 13:21:20 +02:00
parent 51b0494900
commit 60833b231c
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ use futures_io::{AsyncRead, AsyncSeek, AsyncWrite};
/// - `impl<T> AsyncRead for Arc<T> where &T: AsyncRead {}`
/// - `impl<T> AsyncWrite for Arc<T> where &T: AsyncWrite {}`
/// - `impl<T> AsyncSeek for Arc<T> where &T: AsyncSeek {}`
pub struct Arc<T>(std::sync::Arc<T>);
pub struct Arc<T>(pub std::sync::Arc<T>);
impl<T> Unpin for Arc<T> {}