Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/algofix/fix.go
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ func expr(s string) ast.Expr {
return x
}

var posType = reflect.TypeOf(token.Pos(0))
var posType = reflect.TypeFor[token.Pos]()

func killPos(v reflect.Value) {
switch v.Kind() {
Expand Down
2 changes: 1 addition & 1 deletion logging/telemetryspec/metric_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func TestAssembleBlockStatsString(t *testing.T) {
partitiontest.PartitionTest(t)

var abs AssembleBlockStats
localType := reflect.TypeOf(abs)
localType := reflect.TypeFor[AssembleBlockStats]()

// Empty StateProofStats will not be reported. Set a filed to check it printed
abs.StateProofStats.ProvenWeight = 1
Expand Down
2 changes: 1 addition & 1 deletion protocol/codec_tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type msgpMarshalUnmarshal interface {
msgp.Unmarshaler
}

var rawMsgpType = reflect.TypeOf(msgp.Raw{})
var rawMsgpType = reflect.TypeFor[msgp.Raw]()
var errSkipRawMsgpTesting = fmt.Errorf("skipping msgp.Raw serializing, since it won't be the same across go-codec and msgp")

func oneOf(n int) bool {
Expand Down