From 8bab6b2b79dea79779b745a53b3fd05ca2e9824e Mon Sep 17 00:00:00 2001 From: edef Date: Thu, 28 Apr 2022 22:10:35 +0000 Subject: ripple/fossil: use to_be_bytes rather than write_u64 Change-Id: I7eb02482772f48ca9f486f514b89652a9c5730cd --- ripple/fossil/src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ripple/fossil/src') diff --git a/ripple/fossil/src/lib.rs b/ripple/fossil/src/lib.rs index c79105c..9001102 100644 --- a/ripple/fossil/src/lib.rs +++ b/ripple/fossil/src/lib.rs @@ -159,11 +159,7 @@ impl Store { } .encode_to_vec(); - let chunks_tail_buf = { - let mut buf = [0u8; 8]; - BigEndian::write_u64(&mut buf, offset); - buf - }; + let chunks_tail_buf = offset.to_be_bytes(); (&self.blobs, &self.chunks, &self.meta) .transaction(|(blobs, chunks, meta)| { -- cgit 1.4.1