Skip to content

Commit 7632065

Browse files
committed
fix compile-flaw
1 parent 2bac920 commit 7632065

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

fileio_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ func totAllocMb() uint64 {
6262
return bToMb(m.TotalAlloc)
6363
}
6464

65-
type devnull struct{}
66-
func (d devnull) Write(p []byte) (n int, err error) {
67-
return len(p), nil
68-
}
69-
7065
func TestWrite(t *testing.T) {
7166
// 1Mb
7267
f, _ := New(4*8*1024*1024, 1)

textmarshaler.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ package bloomfilter
1212

1313
import "fmt"
1414

15+
type devnull struct{}
16+
17+
func (d devnull) Write(p []byte) (n int, err error) {
18+
return len(p), nil
19+
}
20+
1521
// MarshalText conforms to encoding.TextMarshaler
1622
func (f *Filter) MarshalText() (text []byte, err error) {
1723
f.lock.RLock()

0 commit comments

Comments
 (0)