From f6cec9cd6e4b4c25a30b1331c23b08b5acd19132 Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Sat, 11 May 2024 12:18:29 -0700 Subject: [PATCH] Fix missing and unused error --- src/cose.zig | 1 - src/parse.zig | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cose.zig b/src/cose.zig index bb6ee76..bd5fde6 100644 --- a/src/cose.zig +++ b/src/cose.zig @@ -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; diff --git a/src/parse.zig b/src/parse.zig index 6f30bd4..991fc3f 100644 --- a/src/parse.zig +++ b/src/parse.zig @@ -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; @@ -302,7 +301,7 @@ pub fn parse( else => return ParseError.UnexpectedItem, } }, - else => return Error.UnsupportedType, + else => return ParseError.UnsupportedType, } }, .Union => |unionInfo| { @@ -334,7 +333,7 @@ pub fn parse( @compileError("Unable to parse into untagged union '" ++ @typeName(T) ++ "'"); } }, - else => return Error.UnsupportedType, + else => return ParseError.UnsupportedType, } }