From c49978184048cda6b39fe6307634245e1cace8c0 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Thu, 16 Nov 2023 16:40:16 +0800 Subject: [PATCH] chore: remove refs to deprecated io/ioutil --- bench_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench_test.go b/bench_test.go index 5e02f47..db693c8 100644 --- a/bench_test.go +++ b/bench_test.go @@ -3,7 +3,7 @@ package msgpack_test import ( "bytes" "encoding/json" - "io/ioutil" + "io" "math" "testing" "time" @@ -12,7 +12,7 @@ import ( ) func BenchmarkDiscard(b *testing.B) { - enc := msgpack.NewEncoder(ioutil.Discard) + enc := msgpack.NewEncoder(io.Discard) b.ResetTimer()