From 044ed10fee3351da2315d5d8e26949929ad918ce Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 14 Feb 2017 09:46:03 +0100 Subject: [PATCH] Remove Copy bound from some Cell trait impls Contributes to #39264 --- src/libcore/cell.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index 1570428cf18..2b4ce3a35fc 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -229,7 +229,7 @@ impl Clone for Cell { } #[stable(feature = "rust1", since = "1.0.0")] -impl Default for Cell { +impl Default for Cell { /// Creates a `Cell`, with the `Default` value for T. #[inline] fn default() -> Cell { @@ -285,7 +285,7 @@ impl Ord for Cell { } #[stable(feature = "cell_from", since = "1.12.0")] -impl From for Cell { +impl From for Cell { fn from(t: T) -> Cell { Cell::new(t) }