Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/browser/css/libdom.zig
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const MatcherTest = struct {
test "Browser.CSS.Libdom: matchFirst" {
const alloc = std.testing.allocator;

try parser.init();
parser.init();
defer parser.deinit();

var matcher = MatcherTest.init(alloc);
Expand Down Expand Up @@ -281,7 +281,7 @@ test "Browser.CSS.Libdom: matchFirst" {
test "Browser.CSS.Libdom: matchAll" {
const alloc = std.testing.allocator;

try parser.init();
parser.init();
defer parser.deinit();

var matcher = MatcherTest.init(alloc);
Expand Down
2 changes: 1 addition & 1 deletion src/browser/dump.zig
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ fn writeEscapedAttributeValue(writer: anytype, value: []const u8) !void {

const testing = std.testing;
test "dump.writeHTML" {
try parser.init();
parser.init();
defer parser.deinit();

try testWriteHTML(
Expand Down
7 changes: 1 addition & 6 deletions src/browser/mimalloc.zig
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,9 @@ const c = @cImport({
@cInclude("mimalloc.h");
});

const Error = error{
HeapNotNull,
HeapNull,
};

var heap: ?*c.mi_heap_t = null;

pub fn create() Error!void {
pub fn create() void {
std.debug.assert(heap == null);
heap = c.mi_heap_new();
std.debug.assert(heap != null);
Expand Down
2 changes: 1 addition & 1 deletion src/browser/mime.zig
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub const Mime = struct {
};

/// Returns the null-terminated charset value.
pub inline fn charsetString(mime: *const Mime) [:0]const u8 {
pub fn charsetString(mime: *const Mime) [:0]const u8 {
return @ptrCast(&mime.charset);
}

Expand Down
Loading