From d59b6074bc41c05bc006ca6643dcd71c5169527f Mon Sep 17 00:00:00 2001 From: Ivan FB Date: Fri, 12 Jun 2026 14:49:18 +0200 Subject: [PATCH] refactor(protobufutil): plain import of codec, exclude clashing symbol Switch the brittle hand-maintained `from codec import ` to a plain `import`, so adding a codec helper no longer means editing the list. Use `except ProtobufError` because codec re-exports its own ProtobufError, which would otherwise clash with our app-layer ./types/protobuf_error one. Co-Authored-By: Claude Opus 4.8 --- sds/protobufutil.nim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sds/protobufutil.nim b/sds/protobufutil.nim index af87c02..4e272b2 100644 --- a/sds/protobufutil.nim +++ b/sds/protobufutil.nim @@ -21,9 +21,7 @@ import std/tables import results import faststreams/inputs -from protobuf_serialization/codec import - FieldHeader, WireKind, init, number, kind, toBytes, readHeader, readValue, - skipValue, puint64, pbytes, fixed64, fixed32 +import protobuf_serialization/codec except ProtobufError import ./types/protobuf_error export results, protobuf_error