Skip to content

Commit

Permalink
ser, de: Some more cleanup for std.enums breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
ibokuri committed Mar 16, 2024
1 parent b020780 commit 805c4be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/de/impls/visitor/enum_array.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const std = @import("std");

const VisitorInterface = @import("../../interfaces/visitor.zig").Visitor;

pub fn Visitor(comptime IndexedArray: type) type {
pub fn Visitor(comptime EnumArray: type) type {
return struct {
const Self = @This();

Expand All @@ -12,7 +12,7 @@ pub fn Visitor(comptime IndexedArray: type) type {
.{ .visitSeq = visitSeq },
);

const Value = IndexedArray;
const Value = EnumArray;

fn visitSeq(_: Self, ally: std.mem.Allocator, comptime Deserializer: type, seq: anytype) Deserializer.Err!Value {
var array = Value.initUndefined();
Expand Down
4 changes: 2 additions & 2 deletions src/de/impls/visitor/enum_set.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const std = @import("std");

const VisitorInterface = @import("../../interfaces/visitor.zig").Visitor;

pub fn Visitor(comptime IndexedSet: type) type {
pub fn Visitor(comptime EnumSet: type) type {
return struct {
const Self = @This();

Expand All @@ -12,7 +12,7 @@ pub fn Visitor(comptime IndexedSet: type) type {
.{ .visitSeq = visitSeq },
);

const Value = IndexedSet;
const Value = EnumSet;

fn visitSeq(_: Self, ally: std.mem.Allocator, comptime Deserializer: type, seq: anytype) Deserializer.Err!Value {
var set = Value.initEmpty();
Expand Down
2 changes: 1 addition & 1 deletion src/ser/blocks/enum_set.zig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! `IndexedSet` is a _Serialization Block_ for `std.EnumSet`.
//! `EnumSet` is a _Serialization Block_ for `std.EnumSet`.

const std = @import("std");

Expand Down

0 comments on commit 805c4be

Please sign in to comment.