diff --git a/src/builtins/list.zig b/src/builtins/list.zig index 0c99184f86..5bf8b55a29 100644 --- a/src/builtins/list.zig +++ b/src/builtins/list.zig @@ -299,7 +299,7 @@ pub const RocList = extern struct { } const data_bytes = length * element_width; - const result = RocList{ + return RocList{ .bytes = utils.allocateWithRefcount( data_bytes, alignment, @@ -309,8 +309,6 @@ pub const RocList = extern struct { .length = length, .capacity_or_alloc_ptr = length, }; - - return result; } pub fn reallocate(