summary refs log tree commit diff
diff options
context:
space:
mode:
-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)| {