mirror of
https://github.com/shopspring/decimal.git
synced 2024-11-22 04:20:50 +01:00
Updates MarshalYAML interface to use 'any'
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
This commit is contained in:
parent
f20d7c4b90
commit
af136c8569
1 changed files with 1 additions and 1 deletions
|
@ -1800,7 +1800,7 @@ func (d Decimal) MarshalJSON() ([]byte, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalYAML implements the [yaml.Marshaler] interface.
|
// MarshalYAML implements the [yaml.Marshaler] interface.
|
||||||
func (d Decimal) MarshalYAML() (interface{}, error) {
|
func (d Decimal) MarshalYAML() (any, error) {
|
||||||
if MarshalYAMLWithoutQuotes {
|
if MarshalYAMLWithoutQuotes {
|
||||||
n := yaml.Node{
|
n := yaml.Node{
|
||||||
Kind: yaml.ScalarNode,
|
Kind: yaml.ScalarNode,
|
||||||
|
|
Loading…
Reference in a new issue