Merge "Fix discordance between marshall/unmarshall for ArchType"
This commit is contained in:
@@ -19,7 +19,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"reflect"
|
"reflect"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strconv"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/google/blueprint"
|
"github.com/google/blueprint"
|
||||||
@@ -176,7 +175,7 @@ func ArchTypeList() []ArchType {
|
|||||||
// MarshalText allows an ArchType to be serialized through any encoder that supports
|
// MarshalText allows an ArchType to be serialized through any encoder that supports
|
||||||
// encoding.TextMarshaler.
|
// encoding.TextMarshaler.
|
||||||
func (a ArchType) MarshalText() ([]byte, error) {
|
func (a ArchType) MarshalText() ([]byte, error) {
|
||||||
return []byte(strconv.Quote(a.String())), nil
|
return []byte(a.String()), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ encoding.TextMarshaler = ArchType{}
|
var _ encoding.TextMarshaler = ArchType{}
|
||||||
|
Reference in New Issue
Block a user