Skip to content

Commit

Permalink
refactor: Remove use of usingnamespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Hejsil committed Jul 18, 2024
1 parent 4e033da commit 5d053d8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mecha.zig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ pub fn Parser(comptime _T: type) type {

parse: *const fn (mem.Allocator, []const u8) Error!Result(T),

pub usingnamespace mecha;
pub const asStr = mecha.asStr;
pub const convert = mecha.convert;
pub const digit = mecha.digit;
pub const discard = mecha.discard;
pub const many = mecha.many;
pub const manyN = mecha.manyN;
pub const mapConst = mecha.mapConst;
pub const map = mecha.map;
pub const opt = mecha.opt;
};
}

Expand Down

0 comments on commit 5d053d8

Please sign in to comment.