Skip to content

Commit dfa5b91

Browse files
authored
Merge pull request #151 from sea-grass/refactor-decl-literals
Refactor code to use decl literals
2 parents 73b596b + 36af4d1 commit dfa5b91

File tree

2 files changed

+98
-98
lines changed

2 files changed

+98
-98
lines changed

src/define.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ pub const DefineState = struct {
1111
pub fn init(alloc: std.mem.Allocator) DefineState {
1212
return DefineState{
1313
.allocator = alloc,
14-
.database = Database.init(alloc),
15-
.definitions = std.ArrayList(String).init(alloc),
14+
.database = .init(alloc),
15+
.definitions = .init(alloc),
1616
};
1717
}
1818

@@ -30,7 +30,7 @@ pub fn define(
3030
absolute_output_path: []const u8,
3131
comptime to_define: []const type,
3232
) !void {
33-
var state = DefineState.init(alloc);
33+
var state: DefineState = .init(alloc);
3434
defer state.deinit();
3535

3636
inline for (to_define) |T| {

0 commit comments

Comments
 (0)