diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-10 21:51:57 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-10 21:51:57 +0300 |
| commit | 425c86179791cd32e2d4ce0ae7f269940b4b0663 (patch) | |
| tree | e52c4383a6d69216cbe2a32638bf90841d7e2189 /vendor/libghostty-vt/src/crash/sentry_envelope.zig | |
| parent | 90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff) | |
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/src/crash/sentry_envelope.zig')
| -rw-r--r-- | vendor/libghostty-vt/src/crash/sentry_envelope.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/libghostty-vt/src/crash/sentry_envelope.zig b/vendor/libghostty-vt/src/crash/sentry_envelope.zig index 08573b73..0472bcbe 100644 --- a/vendor/libghostty-vt/src/crash/sentry_envelope.zig +++ b/vendor/libghostty-vt/src/crash/sentry_envelope.zig @@ -93,7 +93,7 @@ pub const Envelope = struct { alloc: Allocator, reader: *std.Io.Reader, ) !std.ArrayList(Item) { - var items: std.ArrayList(Item) = .{}; + var items: std.ArrayList(Item) = .empty; errdefer items.deinit(alloc); while (try parseOneItem(alloc, reader)) |item| { try items.append(alloc, item); @@ -391,7 +391,7 @@ pub const Attachment = struct { else => return error.InvalidFieldType, } else null, - .headers_extra = item.headers.unmanaged, + .headers_extra = item.headers, .payload = item.payload, }; } @@ -417,7 +417,7 @@ pub const Attachment = struct { } return .{ - .headers = self.headers_extra.promote(alloc), + .headers = self.headers_extra, .type = .attachment, .payload = self.payload, }; |
