| ... | @@ -37,10 +37,6 @@ pub const ULID = struct { | ... | @@ -37,10 +37,6 @@ pub const ULID = struct { |
| 37 | | 37 | |
| 38 | pub const BaseType = string; | 38 | pub const BaseType = string; |
| 39 | | 39 | |
| 40 | pub fn jsonStringify(self: @This(), json_stream: anytype) !void { | | |
| 41 | try json_stream.write(&self.bytes()); | | |
| 42 | } | | |
| 43 | | | |
| 44 | pub fn parse(alloc: std.mem.Allocator, value: BaseType) !ULID { | 40 | pub fn parse(alloc: std.mem.Allocator, value: BaseType) !ULID { |
| 45 | if (value.len != 26) return error.Ulid; | 41 | if (value.len != 26) return error.Ulid; |
| 46 | return ULID{ | 42 | return ULID{ |