aboutsummaryrefslogtreecommitdiff
path: root/src/data.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-08 23:47:34 +0200
committerAlex Auvolat <alex@adnab.me>2020-04-08 23:47:34 +0200
commita450103ed038d0838b1a1336ffd3a011abdd88a4 (patch)
treed9753bd60dae22d856eda2d0ef1e4a3e2c39aca3 /src/data.rs
parentcc580da0aef95bcb94bd2ce602258d0d18388969 (diff)
downloadgarage-a450103ed038d0838b1a1336ffd3a011abdd88a4.tar.gz
garage-a450103ed038d0838b1a1336ffd3a011abdd88a4.zip
Work & TODO
Diffstat (limited to 'src/data.rs')
-rw-r--r--src/data.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/data.rs b/src/data.rs
index bbe9aa1d..f01d5394 100644
--- a/src/data.rs
+++ b/src/data.rs
@@ -67,6 +67,9 @@ impl FixedBytes32 {
pub fn as_slice_mut(&mut self) -> &mut [u8] {
&mut self.0[..]
}
+ pub fn to_vec(&self) -> Vec<u8> {
+ self.0.to_vec()
+ }
}
pub type UUID = FixedBytes32;