Skip to content

Commit

Permalink
fix: wrap transform.NopResetter
Browse files Browse the repository at this point in the history
  • Loading branch information
lithammer committed Apr 29, 2022
1 parent 9b4074e commit e2080d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fuzzy/fuzzy.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func stringTransform(s string, t transform.Transformer) (transformed string) {
return
}

type unicodeFoldTransformer struct{}
type unicodeFoldTransformer struct{ transform.NopResetter }

func (unicodeFoldTransformer) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {
runes := bytes.Runes(src)
Expand All @@ -266,8 +266,6 @@ func (unicodeFoldTransformer) Transform(dst, src []byte, atEOF bool) (nDst, nSrc
return n, n, err
}

func (unicodeFoldTransformer) Reset() {}

type nopTransformer struct{ transform.NopResetter }

func (nopTransformer) Transform(dst []byte, src []byte, atEOF bool) (int, int, error) {
Expand Down

0 comments on commit e2080d7

Please sign in to comment.