diff --git a/pkg/libuv/stream.zig b/pkg/libuv/stream.zig index 06206cf82..a3b79c365 100644 --- a/pkg/libuv/stream.zig +++ b/pkg/libuv/stream.zig @@ -182,11 +182,3 @@ pub const WriteReq = struct { test { _ = WriteReq; } - -test "uv_buf_t and slices are the same" { - // Verify that the fields are also the same - var slice: []const u8 = &[_]u8{ 1, 2, 3 }; - var buf = @bitCast(c.uv_buf_t, slice); - try testing.expectEqual(slice.ptr, buf.base); - try testing.expectEqual(slice.len, buf.len); -} diff --git a/pkg/macos/foundation/number.zig b/pkg/macos/foundation/number.zig index 289c9e8f1..df9e3b1f8 100644 --- a/pkg/macos/foundation/number.zig +++ b/pkg/macos/foundation/number.zig @@ -46,7 +46,7 @@ pub const NumberType = enum(c.CFNumberType) { ns_integer = c.kCFNumberNSIntegerType, cg_float = c.kCFNumberCGFloatType, - pub fn ValueType(self: NumberType) type { + pub fn ValueType(comptime self: NumberType) type { return switch (self) { .sint8 => i8, .sint16 => i16, diff --git a/pkg/macos/text/font_descriptor.zig b/pkg/macos/text/font_descriptor.zig index 1c4b04458..22057db58 100644 --- a/pkg/macos/text/font_descriptor.zig +++ b/pkg/macos/text/font_descriptor.zig @@ -85,7 +85,7 @@ pub const FontAttribute = enum { })); } - pub fn Value(self: FontAttribute) type { + pub fn Value(comptime self: FontAttribute) type { return switch (self) { .url => *foundation.URL, .name => *foundation.String,