From 7f2cf0b809f1fc5741990e2bfff94dc3ec41a04f Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 6 Jun 2022 14:01:44 +0200 Subject: Safe choice: return Vec and not some fancy zero-copy type --- src/garage/repair.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/garage') diff --git a/src/garage/repair.rs b/src/garage/repair.rs index 1ae26181..ae28f351 100644 --- a/src/garage/repair.rs +++ b/src/garage/repair.rs @@ -72,8 +72,8 @@ impl Repair { Some(pair) => pair, None => break, }; - pos = k.into_vec(); - v.into_vec() + pos = k; + v }; i += 1; @@ -124,8 +124,8 @@ impl Repair { Some(pair) => pair, None => break, }; - pos = k.into_vec(); - v.into_vec() + pos = k; + v }; i += 1; -- cgit v1.2.3