aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-11-03 00:36:53 +0100
committerIsaac Freund <ifreund@ifreund.xyz>2020-11-03 00:36:53 +0100
commit6c52f9cc2b6d33863084f3b5ca05f80dd159d8a3 (patch)
tree183ef5ba8a98924369f6f8089f5587349e905fe9 /build.zig
parent624a5c3e7af822a207246fcd91bd138b3f035d7f (diff)
downloadriver-6c52f9cc2b6d33863084f3b5ca05f80dd159d8a3.tar.gz
river-6c52f9cc2b6d33863084f3b5ca05f80dd159d8a3.tar.xz
code: use std.ascii.spaces
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig10
1 files changed, 3 insertions, 7 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" },