Skip to content

Commit

Permalink
Merge pull request #576 from saschagrunert/build-err-go1.23
Browse files Browse the repository at this point in the history
Fix build error on go1.23rc1
  • Loading branch information
lthibault authored Jul 19, 2024
2 parents b1fc0ec + ff2fd98 commit 4ed3db2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions list.go
Original file line number Diff line number Diff line change
Expand Up @@ -1081,10 +1081,10 @@ func (s StructList[T]) Set(i int, v T) error {
// A list of some Cap'n Proto capability type T.
type CapList[T ~ClientKind] PointerList

func (c CapList[T]) At(i int) (T, error) {
func (c CapList[T]) At(i int) (res T, err error) {
ptr, err := PointerList(c).At(i)
if err != nil {
return T{}, err
return res, err
}
return T(ptr.Interface().Client()), nil
}
Expand Down

0 comments on commit 4ed3db2

Please sign in to comment.