Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing and unused error #19

Merged
merged 1 commit into from
May 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/cose.zig
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const std = @import("std");

const cbor = @import("cbor.zig");
const Error = cbor.Error;
const Type = cbor.Type;
const DataItem = cbor.DataItem;
const Tag = cbor.Tag;
Expand Down
5 changes: 2 additions & 3 deletions src/parse.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const std = @import("std");
const Allocator = std.mem.Allocator;

const cbor = @import("cbor.zig");
const Error = cbor.Error;
const Type = cbor.Type;
const DataItem = cbor.DataItem;
const Tag = cbor.Tag;
Expand Down Expand Up @@ -302,7 +301,7 @@ pub fn parse(
else => return ParseError.UnexpectedItem,
}
},
else => return Error.UnsupportedType,
else => return ParseError.UnsupportedType,
}
},
.Union => |unionInfo| {
Expand Down Expand Up @@ -334,7 +333,7 @@ pub fn parse(
@compileError("Unable to parse into untagged union '" ++ @typeName(T) ++ "'");
}
},
else => return Error.UnsupportedType,
else => return ParseError.UnsupportedType,
}
}

Expand Down
Loading