File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -89,16 +89,16 @@ impl<T: Internable + Hash> Hash for Interned<T> {
89
89
90
90
impl < T : Internable + Deref > Deref for Interned < T > {
91
91
type Target = T :: Target ;
92
- fn deref ( & self ) -> & ' static Self :: Target {
92
+ fn deref ( & self ) -> & Self :: Target {
93
93
let l = T :: intern_cache ( ) . lock ( ) . unwrap ( ) ;
94
- unsafe { mem:: transmute :: < & Self :: Target , & ' static Self :: Target > ( l. get ( * self ) ) }
94
+ unsafe { mem:: transmute :: < & Self :: Target , & Self :: Target > ( l. get ( * self ) ) }
95
95
}
96
96
}
97
97
98
98
impl < T : Internable + AsRef < U > , U : ?Sized > AsRef < U > for Interned < T > {
99
- fn as_ref ( & self ) -> & ' static U {
99
+ fn as_ref ( & self ) -> & U {
100
100
let l = T :: intern_cache ( ) . lock ( ) . unwrap ( ) ;
101
- unsafe { mem:: transmute :: < & U , & ' static U > ( l. get ( * self ) . as_ref ( ) ) }
101
+ unsafe { mem:: transmute :: < & U , & U > ( l. get ( * self ) . as_ref ( ) ) }
102
102
}
103
103
}
104
104
You can’t perform that action at this time.
0 commit comments