Merge "Fix discordance between marshall/unmarshall for ArchType"

This commit is contained in:
Treehugger Robot
2021-04-16 03:36:29 +00:00
committed by Gerrit Code Review

View File

@@ -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{}