hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit cfd4528c2d3d79dd2adc4c302f46df9ed8390c2d
parent a79ab2a24937d20e97dc6be79c52574e346ca8f2
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue,  4 May 2021 16:48:13 -0400

hare::types: style nit

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mhare/types/store.ha | 14++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/hare/types/store.ha b/hare/types/store.ha @@ -32,14 +32,12 @@ export fn store( arch: arch, resolver: nullable *resolver, rstate: nullable *void, -) *typestore = { - return alloc(typestore { - arch = arch, - resolve = resolver, - rstate = rstate, - ... - }); -}; +) *typestore = alloc(typestore { + arch = arch, + resolve = resolver, + rstate = rstate, + ... +}); // Frees state associated with a [[typestore]]. export fn store_free(store: *typestore) void = {