Skip to content

Commit f5130ce

Browse files
Merge pull request #1061 from lightpanda-io/remove_inline
Remove all inlines
2 parents 347524a + 9d2948f commit f5130ce

File tree

7 files changed

+57
-62
lines changed

7 files changed

+57
-62
lines changed

src/browser/css/libdom.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const MatcherTest = struct {
136136
test "Browser.CSS.Libdom: matchFirst" {
137137
const alloc = std.testing.allocator;
138138

139-
try parser.init();
139+
parser.init();
140140
defer parser.deinit();
141141

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

284-
try parser.init();
284+
parser.init();
285285
defer parser.deinit();
286286

287287
var matcher = MatcherTest.init(alloc);

src/browser/dump.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ fn writeEscapedAttributeValue(writer: anytype, value: []const u8) !void {
226226

227227
const testing = std.testing;
228228
test "dump.writeHTML" {
229-
try parser.init();
229+
parser.init();
230230
defer parser.deinit();
231231

232232
try testWriteHTML(

src/browser/mimalloc.zig

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,9 @@ const c = @cImport({
2626
@cInclude("mimalloc.h");
2727
});
2828

29-
const Error = error{
30-
HeapNotNull,
31-
HeapNull,
32-
};
33-
3429
var heap: ?*c.mi_heap_t = null;
3530

36-
pub fn create() Error!void {
31+
pub fn create() void {
3732
std.debug.assert(heap == null);
3833
heap = c.mi_heap_new();
3934
std.debug.assert(heap != null);

src/browser/mime.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub const Mime = struct {
5454
};
5555

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

0 commit comments

Comments
 (0)