diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-30 11:42:51 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-30 22:00:25 -0700 |
commit | bc1bacc410ddfa444c5bf0e56f33a7da440658ae (patch) | |
tree | 53d982348637d4f7e1ffffe89a69105ec350df6e /decode.go | |
parent | 659114fee7c39f06c408135169f2848a881dfe5e (diff) |
decode: Inline noWsRuneTypeScanner into runeTypeScannerImpl
Diffstat (limited to 'decode.go')
-rw-r--r-- | decode.go | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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, }, }, } |