about summary refs log tree commit diff
path: root/tvix/nix-compat/src/wire/bytes/reader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/nix-compat/src/wire/bytes/reader.rs')
-rw-r--r--tvix/nix-compat/src/wire/bytes/reader.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/nix-compat/src/wire/bytes/reader.rs b/tvix/nix-compat/src/wire/bytes/reader.rs
index 4c450b55db1a..c36729c6142b 100644
--- a/tvix/nix-compat/src/wire/bytes/reader.rs
+++ b/tvix/nix-compat/src/wire/bytes/reader.rs
@@ -60,6 +60,7 @@ where
     }
 }
 /// Returns an error if the passed usize is 0.
+#[inline]
 fn ensure_nonzero_bytes_read(bytes_read: usize) -> Result<usize, std::io::Error> {
     if bytes_read == 0 {
         Err(std::io::Error::new(