Skip to content

Commit 062747b

Browse files
committed
ptr: inline the Clone implementation
1 parent c4656cf commit 062747b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/ptr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ pub unsafe fn buf_len<T>(buf: **T) -> uint {
4747
}
4848

4949
impl<T> Clone for *T {
50+
#[inline]
5051
fn clone(&self) -> *T {
5152
*self
5253
}

0 commit comments

Comments
 (0)