Skip to content

Commit 3c54bcd

Browse files
committed
fix: style
1 parent ba0d5cb commit 3c54bcd

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

build.zig

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub fn build(b: *std.Build) !void {
3838
// Example
3939
const example_step = b.step("example", "Run example");
4040

41-
const example = b.addExecutable(.{
41+
const example_exe = b.addExecutable(.{
4242
.name = "example",
4343
.version = version,
4444
.root_module = b.createModule(.{
@@ -47,12 +47,10 @@ pub fn build(b: *std.Build) !void {
4747
.root_source_file = b.path(EXAMPLE_DIR ++ "main.zig"),
4848
}),
4949
});
50-
example.root_module.addImport("quickphf", root_mod);
50+
example_exe.root_module.addImport("quickphf", root_mod);
5151

52-
const example_run = b.addRunArtifact(example);
53-
example_step.dependOn(&example_run.step);
54-
55-
install_step.dependOn(example_step);
52+
const example_exe_run = b.addRunArtifact(example_exe);
53+
example_step.dependOn(&example_exe_run.step);
5654

5755
// Formatting check
5856
const fmt_step = b.step("fmt", "Check formatting");

src/map_gen.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub fn MapGen(comptime K: type, comptime V: type, comptime NUM_ENTRIES: u64) typ
1919
}
2020

2121
/// Generate source file at given path containing hash map with given name.
22-
pub fn generate(self: Self, path: []const u8, name: []const u8) !void {
22+
pub fn generate(self: Self, path: []const u8, name: []const u8) (std.fs.File.OpenError || std.io.Writer.Error)!void {
2323
var out_file = try std.fs.cwd().createFile(path, .{});
2424
defer out_file.close();
2525

0 commit comments

Comments
 (0)