Skip to content

Refactor encode_action_body #3822

@bernardnormier

Description

@bernardnormier

This code:

fn encode_action_body(

should be simplified. It's confusing to compute value and then most of the time not use it but instead hardcode "value".

It would be nice to add some comments too. For example, explain why we create this strange helper variable:

let is_optional = type_ref.is_optional && !is_tagged;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions