Skip to content

Commit

Permalink
remove unnecessary use of c_allocator (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
xdBronch authored Sep 7, 2024
1 parent fc1db29 commit 4081c40
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/coro.zig
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,10 @@ const Coro = struct {

// Never returns
const err_msg = "Cannot resume an already completed coroutine {any}";
@panic(std.fmt.allocPrint(
std.heap.c_allocator,
std.debug.panic(
err_msg,
.{this_coro.id},
) catch err_msg);
);
}

pub fn getStorage(self: @This(), comptime T: type) *T {
Expand Down

0 comments on commit 4081c40

Please sign in to comment.