Remove an unnecessary intermediate const

This commit is contained in:
Richard Feldman 2025-11-22 12:50:26 -05:00
parent a4336e0600
commit 38947f87e8
No known key found for this signature in database

View file

@ -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(