Skip to content

Commit

Permalink
Nit: move BitSet decl to the top.
Browse files Browse the repository at this point in the history
  • Loading branch information
batiati committed Apr 16, 2024
1 parent 0ba6e12 commit 942caa5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lsm/zig_zag_merge.zig
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub fn ZigZagMergeIteratorType(
) type {
return struct {
const ZigZagMergeIterator = @This();
const BitSet = std.bit_set.IntegerBitSet(streams_max);

context: *Context,
streams_count: u32,
Expand Down Expand Up @@ -97,8 +98,6 @@ pub fn ZigZagMergeIteratorType(
return null;
}

const BitSet = std.bit_set.IntegerBitSet(streams_max);

fn peek_key(it: *ZigZagMergeIterator) error{Drained}!?Key {
assert(it.streams_count <= streams_max);
assert(it.streams_count > 1);
Expand Down

0 comments on commit 942caa5

Please sign in to comment.