Skip to content

Commit e64ba12

Browse files
committed
Remove unnecessary T: Clone bound on core::cell::clone_ref.
`clone_ref` does not actually clone `T`, it just copies a `&T` and increments a borrow count.
1 parent 0fc0476 commit e64ba12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/cell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ impl<'b, T: ?Sized> Deref for Ref<'b, T> {
548548
#[unstable(feature = "core",
549549
reason = "likely to be moved to a method, pending language changes")]
550550
#[inline]
551-
pub fn clone_ref<'b, T:Clone>(orig: &Ref<'b, T>) -> Ref<'b, T> {
551+
pub fn clone_ref<'b, T>(orig: &Ref<'b, T>) -> Ref<'b, T> {
552552
Ref {
553553
_value: orig._value,
554554
_borrow: orig._borrow.clone(),

0 commit comments

Comments
 (0)