From acd1c30a3d979d5484fb66a6456781936e58ad30 Mon Sep 17 00:00:00 2001 From: namedkitten Date: Tue, 25 Aug 2020 11:36:21 +0100 Subject: [PATCH] h --- src/bar/bar.zig | 6 +++--- src/main.zig | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bar/bar.zig b/src/bar/bar.zig index 57e3788..6ae1af6 100644 --- a/src/bar/bar.zig +++ b/src/bar/bar.zig @@ -215,9 +215,9 @@ pub const Bar = struct { // instead of looping and getting it, maybe then it would make more sense? // Anyway this just strips off the prefix of ',' so I can parse the json. if (line[0] == ',') line = line[1..line.len]; - const parseOptions = json.ParseOptions{ .allocator = self.allocator }; - const data = try json.parse(MouseEvent, &json.TokenStream.init(line), parseOptions); - defer json.parseFree(MouseEvent, data, parseOptions); + const parseOptions = std.json.ParseOptions{ .allocator = self.allocator }; + const data = try std.json.parse(MouseEvent, &std.json.TokenStream.init(line), parseOptions); + defer std.json.parseFree(MouseEvent, data, parseOptions); self.dispatch_click_event(data.name, data) catch {}; // If mouse_event needs to store the event for after the call is finished, diff --git a/src/main.zig b/src/main.zig index d8555b5..b7bf6e7 100644 --- a/src/main.zig +++ b/src/main.zig @@ -67,7 +67,7 @@ pub fn main() !void { var br = Bar.init(&bar); const widgets = [_]*Widget{ - &Widget.init(&networkWidget.New(allocator, &br)), // 24.01KiB + //&Widget.init(&networkWidget.New(allocator, &br)), // 24.01KiB &Widget.init(&cpuWidget.New(&br)), // 4.08KiB &Widget.init(&memoryWidget.New(&br)), // 4.08KiB &Widget.init(&weatherWidget.New(allocator, &br, @import("build_options").weather_location)), // 16.16KiB