ptr: inline the Clone implementation

This commit is contained in:
Daniel Micay 2013-08-13 20:37:05 -04:00
parent c4656cfd04
commit 062747b9c9

View file

@ -47,6 +47,7 @@ pub unsafe fn buf_len<T>(buf: **T) -> uint {
}
impl<T> Clone for *T {
#[inline]
fn clone(&self) -> *T {
*self
}