diff options
Diffstat (limited to 'src/z/Env/Future.zig')
| -rw-r--r-- | src/z/Env/Future.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/z/Env/Future.zig b/src/z/Env/Future.zig index 17266b9..2a74936 100644 --- a/src/z/Env/Future.zig +++ b/src/z/Env/Future.zig @@ -5,7 +5,7 @@ const Self = @This(); result: *Env.Value, -pub fn await(self: *Self, env: *Env, comptime kind: Env.Value.Kind) kind.asType() { +pub fn await(self: *const Self, env: *Env, comptime kind: Env.Value.Kind) kind.asType() { const result = self.awaitAny(env); std.debug.assert(kind == result.kind); @@ -16,7 +16,7 @@ pub fn await(self: *Self, env: *Env, comptime kind: Env.Value.Kind) kind.asType( }; } -pub fn awaitAny(self: *Self, env: *Env) Env.Value { +pub fn awaitAny(self: *const Self, env: *Env) Env.Value { defer env.pool.destroy(self.result); if (self.result.kind != .uninit) { |