summaryrefslogtreecommitdiff
path: root/decode.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-30 11:42:51 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-30 22:00:25 -0700
commitbc1bacc410ddfa444c5bf0e56f33a7da440658ae (patch)
tree53d982348637d4f7e1ffffe89a69105ec350df6e /decode.go
parent659114fee7c39f06c408135169f2848a881dfe5e (diff)
decode: Inline noWsRuneTypeScanner into runeTypeScannerImpl
Diffstat (limited to 'decode.go')
-rw-r--r--decode.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/decode.go b/decode.go
index 91be865..8fab267 100644
--- a/decode.go
+++ b/decode.go
@@ -104,12 +104,10 @@ const maxNestingDepth = 10000
// an io.Reader.
func NewDecoder(r io.RuneScanner) *Decoder {
return &Decoder{
- io: &noWSRuneTypeScanner{
- inner: &runeTypeScannerImpl{
- inner: r,
- parser: internal.Parser{
- MaxDepth: maxNestingDepth,
- },
+ io: &runeTypeScannerImpl{
+ inner: r,
+ parser: internal.Parser{
+ MaxDepth: maxNestingDepth,
},
},
}