core: use assoc types in Deref[Mut]
This commit is contained in:
parent
d555772554
commit
64b7c22c46
49 changed files with 256 additions and 107 deletions
|
@ -247,7 +247,9 @@ impl<T> BorrowFrom<Arc<T>> for T {
|
|||
}
|
||||
|
||||
#[experimental = "Deref is experimental."]
|
||||
impl<T> Deref<T> for Arc<T> {
|
||||
impl<T> Deref for Arc<T> {
|
||||
type Target = T;
|
||||
|
||||
#[inline]
|
||||
fn deref(&self) -> &T {
|
||||
&self.inner().data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue