Prevent allocation when checking interface (#649)
This commit is contained in:
parent
c740cde71b
commit
f3a9ea5aa9
|
@ -3,8 +3,8 @@ package bencode
|
|||
type Bytes []byte
|
||||
|
||||
var (
|
||||
_ Unmarshaler = &Bytes{}
|
||||
_ Marshaler = &Bytes{}
|
||||
_ Unmarshaler = (*Bytes)(nil)
|
||||
_ Marshaler = (*Bytes)(nil)
|
||||
_ Marshaler = Bytes{}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue