about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
Diffstat (limited to 'tvix')
-rw-r--r--tvix/nix-compat/src/aterm/parser.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/tvix/nix-compat/src/aterm/parser.rs b/tvix/nix-compat/src/aterm/parser.rs
index 883eeb60b984..d76afb0616e6 100644
--- a/tvix/nix-compat/src/aterm/parser.rs
+++ b/tvix/nix-compat/src/aterm/parser.rs
@@ -102,12 +102,7 @@ mod tests {
 
     #[test]
     fn parse_string_field_invalid_encoding_fail() {
-        let mut input: Vec<u8> = Vec::new();
-        input.push(b'"');
-        input.push(0xc5);
-        input.push(0xc4);
-        input.push(0xd6);
-        input.push(b'"');
+        let input: Vec<_> = vec![b'"', 0xc5, 0xc4, 0xd6, b'"'];
 
         super::parse_string_field(&input).expect_err("must fail");
     }