code formatting

This commit is contained in:
Andrew Kelley 2019-07-05 14:14:25 -04:00
parent 273c2b5c25
commit 5b42c76951
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
2 changed files with 5 additions and 5 deletions

View File

@ -550,7 +550,7 @@ pub const ChildProcess = struct {
retry: while (it.next()) |search_path| {
var ext_it = mem.tokenize(PATHEXT, ";");
while (ext_it.next()) |app_ext| {
const app_basename = try mem.concat(self.allocator, u8, [_][]const u8{app_name[0..app_name.len - 1], app_ext});
const app_basename = try mem.concat(self.allocator, u8, [_][]const u8{ app_name[0 .. app_name.len - 1], app_ext });
defer self.allocator.free(app_basename);
const joined_path = try fs.path.join(self.allocator, [_][]const u8{ search_path, app_basename });
@ -562,9 +562,9 @@ pub const ChildProcess = struct {
if (windowsCreateProcess(joined_path_w.ptr, cmd_line_w.ptr, envp_ptr, cwd_w_ptr, &siStartInfo, &piProcInfo)) |_| {
break :retry;
} else |err| switch (err) {
error.FileNotFound => { continue; },
error.AccessDenied => { continue; },
else => { return err; },
error.FileNotFound => continue,
error.AccessDenied => continue,
else => return err,
}
}
} else {

View File

@ -73,7 +73,7 @@ extern fn WinMainCRTStartup() noreturn {
}
enableSegfaultHandler();
std.os.windows.kernel32.ExitProcess(callMain());
}