Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ struct AutomergeKeyedEncodingContainer<K: CodingKey>: KeyedEncodingContainerProt
guard let objectId = objectId else {
throw reportBestError()
}
let newPath = impl.codingPath + [key]
let newPath = codingPath + [key]
// this is where we need to figure out what the encodable type is in order to create
// the correct Automerge objectType underneath the covers.
// For example - for encoding another struct, class, or dict - we'd want to make it .map,
Expand Down Expand Up @@ -397,7 +397,7 @@ struct AutomergeKeyedEncodingContainer<K: CodingKey>: KeyedEncodingContainerProt
mutating func nestedContainer<NestedKey>(keyedBy _: NestedKey.Type, forKey key: Self.Key) ->
KeyedEncodingContainer<NestedKey> where NestedKey: CodingKey
{
let newPath = impl.codingPath + [key]
let newPath = codingPath + [key]
let nestedContainer = AutomergeKeyedEncodingContainer<NestedKey>(
impl: impl,
codingPath: newPath,
Expand All @@ -407,7 +407,7 @@ struct AutomergeKeyedEncodingContainer<K: CodingKey>: KeyedEncodingContainerProt
}

mutating func nestedUnkeyedContainer(forKey key: Self.Key) -> UnkeyedEncodingContainer {
let newPath = impl.codingPath + [key]
let newPath = codingPath + [key]
let nestedContainer = AutomergeUnkeyedEncodingContainer(
impl: impl,
codingPath: newPath,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ struct AutomergeUnkeyedEncodingContainer: UnkeyedEncodingContainer {
}
impl.highestUnkeyedIndexWritten = UInt64(count)
default:
let newPath = impl.codingPath + [AnyCodingKey(UInt64(count))]
let newPath = codingPath + [AnyCodingKey(UInt64(count))]
let newEncoder = AutomergeEncoderImpl(
userInfo: impl.userInfo,
codingPath: newPath,
Expand Down Expand Up @@ -220,7 +220,7 @@ struct AutomergeUnkeyedEncodingContainer: UnkeyedEncodingContainer {
mutating func nestedContainer<NestedKey>(keyedBy _: NestedKey.Type) ->
KeyedEncodingContainer<NestedKey> where NestedKey: CodingKey
{
let newPath = impl.codingPath + [AnyCodingKey(UInt64(count))]
let newPath = codingPath + [AnyCodingKey(UInt64(count))]
let nestedContainer = AutomergeKeyedEncodingContainer<NestedKey>(
impl: impl,
codingPath: newPath,
Expand All @@ -230,7 +230,7 @@ struct AutomergeUnkeyedEncodingContainer: UnkeyedEncodingContainer {
}

mutating func nestedUnkeyedContainer() -> UnkeyedEncodingContainer {
let newPath = impl.codingPath + [AnyCodingKey(UInt64(count))]
let newPath = codingPath + [AnyCodingKey(UInt64(count))]
let nestedContainer = AutomergeUnkeyedEncodingContainer(
impl: impl,
codingPath: newPath,
Expand Down
Loading
Loading