about summary refs log tree commit diff
path: root/tvix/nix-compat/src/wire/bytes_writer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/nix-compat/src/wire/bytes_writer.rs')
-rw-r--r--tvix/nix-compat/src/wire/bytes_writer.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/tvix/nix-compat/src/wire/bytes_writer.rs b/tvix/nix-compat/src/wire/bytes_writer.rs
index cf0e227e1847..15cac91401c5 100644
--- a/tvix/nix-compat/src/wire/bytes_writer.rs
+++ b/tvix/nix-compat/src/wire/bytes_writer.rs
@@ -3,12 +3,11 @@ use std::task::{ready, Poll};
 
 use tokio::io::AsyncWrite;
 
+use super::bytes::EMPTY_BYTES;
+
 /// The length of the size field, in bytes is always 8.
 const LEN_SIZE: usize = 8;
 
-/// 8 null bytes, used to write out padding.
-const EMPTY_BYTES: &[u8; 8] = &[0u8; 8];
-
 pin_project! {
     /// Writes a "bytes wire packet" to the underlying writer.
     /// The format is the same as in [crate::wire::bytes::write_bytes],