mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
Remove an unnecessary intermediate const
This commit is contained in:
parent
a4336e0600
commit
38947f87e8
1 changed files with 1 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue