mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
Upgrade Zig (#2656)
* Upgrade Zig
* Don't add `d` files in github actions
* Revert "Don't add `d` files in github actions"
This reverts commit 446e2dd674.
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
@@ -24,7 +24,7 @@ pub inline fn contains(self: string, str: string) bool {
|
||||
}
|
||||
|
||||
pub fn toUTF16Literal(comptime str: []const u8) []const u16 {
|
||||
comptime {
|
||||
return comptime brk: {
|
||||
comptime var output: [str.len]u16 = undefined;
|
||||
|
||||
for (str, 0..) |c, i| {
|
||||
@@ -34,9 +34,8 @@ pub fn toUTF16Literal(comptime str: []const u8) []const u16 {
|
||||
const Static = struct {
|
||||
pub const literal: []const u16 = output[0..];
|
||||
};
|
||||
|
||||
return Static.literal;
|
||||
}
|
||||
break :brk Static.literal;
|
||||
};
|
||||
}
|
||||
|
||||
const OptionalUsize = std.meta.Int(.unsigned, @bitSizeOf(usize) - 1);
|
||||
|
||||
Reference in New Issue
Block a user