@@ -19,7 +19,7 @@ pub fn main() !void {
1919 .allocator = allocator ,
2020 .argv = &[_ ][]const u8 { "open" , url },
2121 }) catch {
22- try std .io .getStdOut ().writer ().print ("{s}\n " , .{ url });
22+ try std .io .getStdOut ().writer ().print ("{s}\n " , .{url });
2323 };
2424}
2525
@@ -29,7 +29,7 @@ fn origin(remotes: []const u8) ![]const u8 {
2929 const line = remote .next ();
3030 if (line ) | val | {
3131 if (std .mem .startsWith (u8 , val , "origin" ) and std .mem .endsWith (u8 , val , "(push)" )) {
32- return std .mem .trim (u8 , val [7.. val .len - 6 ], " " );
32+ return std .mem .trim (u8 , val [7 .. val .len - 6 ], " " );
3333 }
3434 } else {
3535 return error .GitOriginMissing ;
@@ -51,10 +51,10 @@ test "origin ssh" {
5151
5252fn repo (remote : []const u8 ) ! []const u8 {
5353 if (std .mem .startsWith (u8 , remote , "https://github.com/" )) {
54- return remote [19.. remote .len - 4 ];
54+ return remote [19 .. remote .len - 4 ];
5555 }
5656 if (std .mem .startsWith (u8 , remote , "git@github.com:" )) {
57- return remote [15.. remote .len - 4 ];
57+ return remote [15 .. remote .len - 4 ];
5858 }
5959 return error .GitProtocolMissing ;
6060}
@@ -75,7 +75,7 @@ fn coverage(allocator: std.mem.Allocator, project: []const u8) ![]const u8 {
7575 return std .fmt .allocPrint (
7676 allocator ,
7777 "https://app.codecov.io/gh/{s}" ,
78- .{ project },
78+ .{project },
7979 );
8080}
8181
0 commit comments