diff --git a/src/sync/arc.rs b/src/sync/arc.rs index 6de7191..2348291 100644 --- a/src/sync/arc.rs +++ b/src/sync/arc.rs @@ -1,5 +1,6 @@ use crate::rt; +use std::borrow::Borrow; use std::pin::Pin; use std::{mem, ops, ptr}; @@ -267,3 +268,15 @@ impl From for Arc { Arc::new(t) } } + +impl AsRef for Arc { + fn as_ref(&self) -> &T { + self + } +} + +impl Borrow for Arc { + fn borrow(&self) -> &T { + self + } +}