From f05bb111c2e7dd77f2b34b82892bbfa8e6a063c1 Mon Sep 17 00:00:00 2001 From: Trinity Pointard Date: Fri, 9 Apr 2021 02:32:42 +0200 Subject: fix clippy warnings on util and rpc --- src/util/data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/data.rs') 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 { + pub fn to_vec(self) -> Vec { self.0.to_vec() } /// Try building a FixedBytes32 from a slice -- cgit v1.2.3