File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ pub fn format(
318
318
) @TypeOf (writer ).Error ! void {
319
319
_ = options ;
320
320
321
- const scheme = comptime std .mem .indexOf (u8 , fmt , ": " ) != null or fmt .len == 0 ;
321
+ const scheme = comptime std .mem .indexOf (u8 , fmt , "; " ) != null or fmt .len == 0 ;
322
322
const authentication = comptime std .mem .indexOf (u8 , fmt , "@" ) != null or fmt .len == 0 ;
323
323
const authority = comptime std .mem .indexOf (u8 , fmt , "+" ) != null or fmt .len == 0 ;
324
324
const path = comptime std .mem .indexOf (u8 , fmt , "/" ) != null or fmt .len == 0 ;
@@ -850,7 +850,7 @@ test "format" {
850
850
};
851
851
var buf = std .ArrayList (u8 ).init (std .testing .allocator );
852
852
defer buf .deinit ();
853
- try uri . format ( ": /?#" , .{}, buf . writer () );
853
+ try buf . writer (). print ( "{; /?#} " , .{uri } );
854
854
try std .testing .expectEqualSlices (u8 , "file:/foo/bar/baz" , buf .items );
855
855
}
856
856
Original file line number Diff line number Diff line change @@ -915,7 +915,7 @@ fn initResource(f: *Fetch, uri: std.Uri) RunError!Resource {
915
915
});
916
916
const notes_start = try eb .reserveNotes (notes_len );
917
917
eb .extra .items [notes_start ] = @intFromEnum (try eb .addErrorMessage (.{
918
- .msg = try eb .printString ("try .url = \" {+/}#{}\" ," , .{
918
+ .msg = try eb .printString ("try .url = \" {; +/}#{}\" ," , .{
919
919
uri , std .fmt .fmtSliceHexLower (& want_oid ),
920
920
}),
921
921
}));
You can’t perform that action at this time.
0 commit comments