Skip to content

Commit

Permalink
Upgrade to zig 0.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraVoves authored and natecraddock committed Mar 7, 2025
1 parent f8ba4a4 commit 03176fc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Zig
uses: mlugg/setup-zig@v1
with:
version: 0.13.0
version: 0.14.0

- name: Run tests
run: zig build test
10 changes: 6 additions & 4 deletions build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
.{
.name = "zf",
.name = .zf,
.fingerprint = 0x30d847eef1728438,
.description = "a commandline fuzzy finder designed for filtering filepaths",
.version = "0.10.2",
.version = "0.10.3",
.dependencies = .{
.vaxis = .{
.url = "git+https://github.com/rockorager/libvaxis/?ref=main#dc0a228a5544988d4a920cfb40be9cd28db41423",
.hash = "1220c72c1697dd9008461ead702997a15d8a1c5810247f02e7983b9f74c6c6e4c087",
.url = "git+https://github.com/rockorager/libvaxis/?ref=main#6a37605dde55898dcca4769dd3eb1e333959c209",
.hash = "vaxis-0.1.0-BWNV_K3yCACrTy3A5cbZElLyICx5a2O2EzPxmgVRcbKJ",
.lazy = true,
},
},
.paths = .{
Expand Down
2 changes: 1 addition & 1 deletion src/tui/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const ArrayList = std.ArrayList;
const Candidate = candidate.Candidate;
const Color = ui.Color;

pub const std_options = .{
pub const std_options: std.Options = .{
.log_level = .err,
};

Expand Down
2 changes: 1 addition & 1 deletion src/tui/ui.zig
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fn numDigits(number: usize) u16 {
/// split the query on spaces and return a slice of query tokens
pub fn splitQuery(query_tokens: [][]const u8, query: []const u8) [][]const u8 {
var index: u8 = 0;
var it = std.mem.tokenize(u8, query, " ");
var it = std.mem.tokenizeScalar(u8, query, ' ');
while (it.next()) |token| : (index += 1) {
if (index == query_tokens.len) break;
query_tokens[index] = token;
Expand Down

0 comments on commit 03176fc

Please sign in to comment.