Unverified Commit 13c0c783 authored by Fahad Zubair's avatar Fahad Zubair Committed by GitHub
Browse files

Update...


Update codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/RpcV2Cbor.kt

Co-authored-by: default avatardavid-perez <d@vidp.dev>
parent 8bf71f17
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -143,7 +143,6 @@ open class RpcV2Cbor(val codegenContext: CodegenContext) : Protocol {

    override fun parseEventStreamErrorMetadata(operationShape: OperationShape): RuntimeType =
        ProtocolFunctions.crossOperationFn("parse_event_stream_error_metadata") { fnName ->
            // `HeaderMap::new()` doesn't allocate.
            rustTemplate(
                """
                pub fn $fnName(payload: &#{Bytes}) -> Result<#{ErrorMetadataBuilder}, #{DeserializeError}> {