Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/define.zig
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ pub const DefineState = struct {
pub fn init(alloc: std.mem.Allocator) DefineState {
return DefineState{
.allocator = alloc,
.database = Database.init(alloc),
.definitions = std.ArrayList(String).init(alloc),
.database = .init(alloc),
.definitions = .init(alloc),
};
}

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

inline for (to_define) |T| {
Expand Down
Loading
Loading