summaryrefslogtreecommitdiff
path: root/compat/json/testcompat_test.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-18 14:54:36 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-18 14:58:55 -0700
commitb2b51abfdc2eaefe6cf4aaf8645bbc7c52d89ff9 (patch)
tree59494397a1c7beb8d006863edc948b825aa1a533 /compat/json/testcompat_test.go
parent1b773c966cdb6b38cc4bc73e218793db3a9442ba (diff)
fastio: NewAllWriter: Add a special case for io.Discard
Diffstat (limited to 'compat/json/testcompat_test.go')
-rw-r--r--compat/json/testcompat_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/json/testcompat_test.go b/compat/json/testcompat_test.go
index c186678..42cbf5c 100644
--- a/compat/json/testcompat_test.go
+++ b/compat/json/testcompat_test.go
@@ -7,10 +7,10 @@ package json
import (
"bytes"
"encoding/json"
+ "io"
_ "unsafe"
"git.lukeshu.com/go/lowmemjson"
- "git.lukeshu.com/go/lowmemjson/internal/fastio"
"git.lukeshu.com/go/lowmemjson/internal/jsonparse"
"git.lukeshu.com/go/lowmemjson/internal/jsonstring"
"git.lukeshu.com/go/lowmemjson/internal/jsonstruct"
@@ -25,7 +25,7 @@ var (
type scanner = lowmemjson.ReEncoderConfig
func checkValid(in []byte, scan *lowmemjson.ReEncoderConfig) error {
- return reencode(fastio.Discard, in, *scan)
+ return reencode(io.Discard, in, *scan)
}
func isValidNumber(s string) bool {