You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/parse/CborParserGenerator.kt
Copy file name to clipboardExpand all lines: codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/serialize/CborSerializerGenerator.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -402,7 +402,7 @@ class CborSerializerGenerator(
402
402
rust(
403
403
"""
404
404
encoder.array(
405
-
(${context.valueExpression.asRef()}).len().try_into().expect("`usize` to `u64` conversion failed")
405
+
(${context.valueExpression.asValue()}).len().try_into().expect("`usize` to `u64` conversion failed")
406
406
);
407
407
"""
408
408
)
@@ -421,7 +421,7 @@ class CborSerializerGenerator(
421
421
rust(
422
422
"""
423
423
encoder.map(
424
-
(${context.valueExpression.asRef()}).len().try_into().expect("`usize` to `u64` conversion failed")
424
+
(${context.valueExpression.asValue()}).len().try_into().expect("`usize` to `u64` conversion failed")
0 commit comments