From 1bac60d39a4ac93d4dfa17b43e3bc7c02e4b799a Mon Sep 17 00:00:00 2001 From: Adam Cimarosti Date: Tue, 8 Oct 2024 12:22:59 +0100 Subject: [PATCH] restricting TryClone to T: Copy as T: Clone is fallible --- src/vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vec.rs b/src/vec.rs index fcdacfa..3053e90 100644 --- a/src/vec.rs +++ b/src/vec.rs @@ -186,7 +186,7 @@ impl Vec { } } -impl TryClone for Vec { +impl TryClone for Vec { type Error = TryReserveError; fn try_clone(&self) -> Result {