mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
chore: modernize some code
This commit is contained in:
@@ -70,7 +70,7 @@ func TestUnmapPrefix(t *testing.T) {
|
||||
|
||||
func TestNetIPAddrStructure(t *testing.T) {
|
||||
var addr netip.Addr
|
||||
addrType := reflect.TypeOf(addr)
|
||||
addrType := reflect.TypeFor[netip.Addr]()
|
||||
|
||||
// Test total size: 24 bytes (16 for uint128 + 8 for unique.Handle)
|
||||
if unsafe.Sizeof(addr) != 24 {
|
||||
|
||||
Reference in New Issue
Block a user