*: remove error from StableMarshal return values

We marshal only in-memory structures, no error is expected.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-04-05 11:24:34 +03:00 committed by LeL
parent 84d981e88e
commit 94f068e462
17 changed files with 504 additions and 1358 deletions

View file

@ -44,8 +44,8 @@ func benchmarkObjectIDSlice(b *testing.B, size int) {
b.ReportAllocs()
for i := 0; i < b.N; i++ {
buf := make([]byte, ObjectIDNestedListSize(1, ids))
_, err := ObjectIDNestedListMarshal(1, buf, ids)
if err != nil {
n := ObjectIDNestedListMarshal(1, buf, ids)
if n != len(buf) {
b.FailNow()
}
}