aboutsummaryrefslogtreecommitdiff
path: root/src/util/data.rs
diff options
context:
space:
mode:
authorTrinity Pointard <trinity.pointard@gmail.com>2021-04-09 02:32:42 +0200
committerAlex Auvolat <alex@adnab.me>2021-05-03 22:11:41 +0200
commitf05bb111c2e7dd77f2b34b82892bbfa8e6a063c1 (patch)
tree0e093982ad6e30a440dcdbd9d8e47c4e75b9d198 /src/util/data.rs
parent88925ebe2210a8382b4d353fcab15d2b5c345efb (diff)
downloadgarage-f05bb111c2e7dd77f2b34b82892bbfa8e6a063c1.tar.gz
garage-f05bb111c2e7dd77f2b34b82892bbfa8e6a063c1.zip
fix clippy warnings on util and rpc
Diffstat (limited to 'src/util/data.rs')
-rw-r--r--src/util/data.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/data.rs b/src/util/data.rs
index 34ee8a18..56c7ab56 100644
--- a/src/util/data.rs
+++ b/src/util/data.rs
@@ -72,7 +72,7 @@ impl FixedBytes32 {
&mut self.0[..]
}
/// Copy to a slice
- pub fn to_vec(&self) -> Vec<u8> {
+ pub fn to_vec(self) -> Vec<u8> {
self.0.to_vec()
}
/// Try building a FixedBytes32 from a slice