Skip to content

Commit

Permalink
always pass DocumentStore.Handle by ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Nov 13, 2024
1 parent 8bbf413 commit 5da482b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DocumentStore.zig
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ pub const Handle = struct {
return try self.getZirCold();
}

pub fn getZirStatus(self: Handle) ZirStatus {
pub fn getZirStatus(self: *const Handle) ZirStatus {
const status = self.getStatus();
if (!status.has_zir) return .none;
return if (status.zir_outdated) .outdated else .done;
Expand Down Expand Up @@ -452,11 +452,11 @@ pub const Handle = struct {
return self.impl.zir;
}

fn getStatus(self: Handle) Status {
fn getStatus(self: *const Handle) Status {
return @bitCast(self.impl.status.load(.acquire));
}

pub fn isOpen(self: Handle) bool {
pub fn isOpen(self: *const Handle) bool {
return self.getStatus().open;
}

Expand Down

0 comments on commit 5da482b

Please sign in to comment.