diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-06 14:01:44 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-06 14:01:44 +0200 |
commit | 7f2cf0b809f1fc5741990e2bfff94dc3ec41a04f (patch) | |
tree | d682dfba3c86d823b0447db21bd7740b2ab3d772 /src/garage | |
parent | 4539a6c2298cfb4578261060e4a5af739a45c99f (diff) | |
download | garage-7f2cf0b809f1fc5741990e2bfff94dc3ec41a04f.tar.gz garage-7f2cf0b809f1fc5741990e2bfff94dc3ec41a04f.zip |
Safe choice: return Vec<u8> and not some fancy zero-copy type
Diffstat (limited to 'src/garage')
-rw-r--r-- | src/garage/repair.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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; |