diff --git a/table.go b/table.go index 1d3823f..6645f53 100644 --- a/table.go +++ b/table.go @@ -30,6 +30,9 @@ import ( // // A Table must not be copied by value, see [Table.Clone]. type Table[V any] struct { + // used by -copylocks checker from `go vet`. + _ noCopy + // the root nodes, implemented as popcount compressed multibit tries root4 node[V] root6 node[V] @@ -37,9 +40,6 @@ type Table[V any] struct { // the number of prefixes in the routing table size4 int size6 int - - // used by -copylocks checker from `go vet`. - _ noCopy } // rootNodeByVersion, root node getter for ip version.