Skip to content

Commit

Permalink
don't use io.StringWriter (segmentio#337)
Browse files Browse the repository at this point in the history
Achille authored Aug 14, 2019
1 parent c2af8e7 commit 70799bd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions crc32.go
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@ package kafka
import (
"encoding/binary"
"hash/crc32"
"io"
)

type crc32Writer struct {
@@ -54,8 +53,3 @@ func (w *crc32Writer) WriteString(s string) (int, error) {
w.update([]byte(s))
return len(s), nil
}

var (
_ io.Writer = (*crc32Writer)(nil)
_ io.StringWriter = (*crc32Writer)(nil)
)

0 comments on commit 70799bd

Please sign in to comment.