ptr: inline the Clone implementation
This commit is contained in:
parent
c4656cfd04
commit
062747b9c9
@ -47,6 +47,7 @@ pub unsafe fn buf_len<T>(buf: **T) -> uint {
|
||||
}
|
||||
|
||||
impl<T> Clone for *T {
|
||||
#[inline]
|
||||
fn clone(&self) -> *T {
|
||||
*self
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user