diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-11-03 00:36:53 +0100 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-11-03 00:36:53 +0100 |
| commit | 6c52f9cc2b6d33863084f3b5ca05f80dd159d8a3 (patch) | |
| tree | 183ef5ba8a98924369f6f8089f5587349e905fe9 /build.zig | |
| parent | 624a5c3e7af822a207246fcd91bd138b3f035d7f (diff) | |
| download | river-6c52f9cc2b6d33863084f3b5ca05f80dd159d8a3.tar.gz river-6c52f9cc2b6d33863084f3b5ca05f80dd159d8a3.tar.xz | |
code: use std.ascii.spaces
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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" }, |
