We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 73b596b + 36af4d1 commit dfa5b91Copy full SHA for dfa5b91
src/define.zig
@@ -11,8 +11,8 @@ pub const DefineState = struct {
11
pub fn init(alloc: std.mem.Allocator) DefineState {
12
return DefineState{
13
.allocator = alloc,
14
- .database = Database.init(alloc),
15
- .definitions = std.ArrayList(String).init(alloc),
+ .database = .init(alloc),
+ .definitions = .init(alloc),
16
};
17
}
18
@@ -30,7 +30,7 @@ pub fn define(
30
absolute_output_path: []const u8,
31
comptime to_define: []const type,
32
) !void {
33
- var state = DefineState.init(alloc);
+ var state: DefineState = .init(alloc);
34
defer state.deinit();
35
36
inline for (to_define) |T| {
0 commit comments