Skip to content

Commit 162a49b

Browse files
author
Matt Muller
committed
Fix smithy-cbor spec and rbs
1 parent d1b0637 commit 162a49b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gems/smithy-cbor/lib/smithy-cbor/deserializer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def initialize(options = {})
1515
def deserialize(shape, bytes, target)
1616
return {} if bytes.empty?
1717

18-
ref = shape.is_a?(ShapeRef) ? shape : ShapeRef.new(target: shape)
18+
ref = shape.is_a?(ShapeRef) ? shape : ShapeRef.new(shape: shape)
1919
shape(ref, CBOR.decode(bytes), target)
2020
end
2121

gems/smithy-cbor/lib/smithy-cbor/serializer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def initialize(options = {})
1313
end
1414

1515
def serialize(shape, data)
16-
ref = shape.is_a?(ShapeRef) ? shape : ShapeRef.new(target: shape)
16+
ref = shape.is_a?(ShapeRef) ? shape : ShapeRef.new(shape: shape)
1717
return nil if ref.shape == Prelude::Unit
1818

1919
CBOR.encode(shape(ref, data))

0 commit comments

Comments
 (0)