summary refs log tree commit diff
path: root/ripple/fossil
diff options
context:
space:
mode:
authoredef <edef@unfathomable.blue>2022-04-28 22:10:35 +0000
committeredef <edef@unfathomable.blue>2022-04-28 22:10:35 +0000
commit8bab6b2b79dea79779b745a53b3fd05ca2e9824e (patch)
tree57b36e76c1a5614c86536d4f09ff99a4c004beae /ripple/fossil
parentb5a97ad86e81e3bd8ff325ea991459c5f262b245 (diff)
downloadunf-legacy-8bab6b2b79dea79779b745a53b3fd05ca2e9824e.tar.zst
ripple/fossil: use to_be_bytes rather than write_u64
Change-Id: I7eb02482772f48ca9f486f514b89652a9c5730cd
Diffstat (limited to 'ripple/fossil')
-rw-r--r--ripple/fossil/src/lib.rs6
1 files changed, 1 insertions, 5 deletions
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)| {