staticcheck: Fix unused fields

The embedded `nocmp` field and other similar fields are unused in tests
and the rest of our code.

We can get the effect of `nocmp` without embedding the fields by using
`_ nocmp` as a field.
This commit is contained in:
Abhinav Gupta
2020-09-11 09:55:04 -07:00
parent 746c19c0c5
commit f64e592f7f
13 changed files with 17 additions and 17 deletions

View File

@@ -28,7 +28,7 @@ import (
// Bool is an atomic type-safe wrapper for bool values.
type Bool struct {
nocmp // disallow non-atomic comparison
_ nocmp // disallow non-atomic comparison
v Uint32
}