From 9374ce0b9ead844e180e9b8e8fb58f41bf61c7df Mon Sep 17 00:00:00 2001 From: Karl Gaissmaier Date: Sun, 26 Jan 2025 23:14:27 +0100 Subject: [PATCH] rearrange Table struct, see go/issues/9401 --- table.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.