File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,6 @@ func (o *Option[T]) UnmarshalJSON(data []byte) error {
3333}
3434
3535var (
36- _ json.Unmarshaler = & Option [struct {}]{}
36+ _ json.Unmarshaler = new ( Option [struct {}])
3737 _ json.Marshaler = Option [struct {}]{}
3838)
Original file line number Diff line number Diff line change @@ -15,4 +15,4 @@ func (r *Result[T]) UnmarshalJSON(data []byte) error {
1515 return nil
1616}
1717
18- var _ json.Unmarshaler = & Result [struct {}]{}
18+ var _ json.Unmarshaler = new ( Result [struct {}])
Original file line number Diff line number Diff line change 11package result
22
3- import (
4- "fmt"
5- )
3+ import "fmt"
64
75// Result represents failure or success. The [Ok] variant represents success
86// and contains a value. The [Err] variant represent a failure and contains an
You can’t perform that action at this time.
0 commit comments