git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commite9ed46ad0ac764f73d0a819703e4cb81ff3518c7
parent4a665f46e2
authorIsaac Freund <[email protected]>
date2020-11-03 00:36
code: use std.ascii.spaces

 build.zig        | 10 +++-------
 deps/zig-wayland |  2 +-
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/build.zig b/build.zig
index ecf3310..95a4d5f 100644
--- a/build.zig
+++ b/build.zig
@@ -154,13 +154,9 @@ const OldScanProtocolsStep = struct {
     fn make(step: *std.build.Step) !void {
         const self = @fieldParentPtr(OldScanProtocolsStep, "step", step);
 
-        const protocol_dir = std.mem.trim(
-            u8,
-            try self.builder.exec(
-                &[_][]const u8{ "pkg-config", "--variable=pkgdatadir", "wayland-protocols" },
-            ),
-            &[_]u8 {' ', '\t', '\n', '\r'},
-        );
+        const protocol_dir = std.mem.trim(u8, try self.builder.exec(
+            &[_][]const u8{ "pkg-config", "--variable=pkgdatadir", "wayland-protocols" },
+        ), &std.ascii.spaces);
 
         const protocol_dir_paths = [_][]const []const u8{
             &[_][]const u8{ protocol_dir, "stable/xdg-shell/xdg-shell.xml" },
diff --git a/deps/zig-wayland b/deps/zig-wayland
index d0fcd31..931b6f7 160000
--- a/deps/zig-wayland
+++ b/deps/zig-wayland
@@ -1 +1 @@
-Subproject commit d0fcd31b54c930d58267ebaf03a898c2d01ccfa4
+Subproject commit 931b6f767b5c25280df1252982322d6eb1580aca