mat: move sizeInt64 to testing file to quieten unused
MODIFY
mat/io.go
mat/io.go
@@ -21,7 +21,6 @@ const maxLen = int64(int(^uint(0) >> 1))
var (
headerSize = binary.Size(storage{})
- sizeInt64 = binary.Size(int64(0))
sizeFloat64 = binary.Size(float64(0))
errWrongType = errors.New("mat: wrong data type")

MODIFY
mat/io_test.go
mat/io_test.go
@@ -7,6 +7,7 @@ package mat
import (
"bytes"
"encoding"
+ "encoding/binary"
"io"
"io/ioutil"
"math"
@@ -22,6 +23,8 @@ var (
_ encoding.BinaryUnmarshaler = (*VecDense)(nil)
)
+var sizeInt64 = binary.Size(int64(0))
+
var denseData = []struct {
raw []byte
want *Dense

mat: move sizeInt64 to testing file to quieten unused