Prevent allocation when checking interface (#649)

This commit is contained in:
YenForYang 2021-09-17 21:36:25 -05:00 committed by GitHub
parent c740cde71b
commit f3a9ea5aa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@ package bencode
type Bytes []byte
var (
_ Unmarshaler = &Bytes{}
_ Marshaler = &Bytes{}
_ Unmarshaler = (*Bytes)(nil)
_ Marshaler = (*Bytes)(nil)
_ Marshaler = Bytes{}
)