Skip to content
This repository was archived by the owner on May 12, 2024. It is now read-only.
This repository was archived by the owner on May 12, 2024. It is now read-only.

Use checked string conversions #17

@Samyak2

Description

@Samyak2

Description

Currently, strings are converted to BoundedString by simply using .into(). This is an unchecked conversion and will truncate the string to fit in the length - which is currently 63.

Steps to Reproduce

Expected Behavior

The conversions should be checked and an explicit error must be returned if the string is invalid (longer than 63). Having it silently fail without warnings makes a good foot gun :)

Actual Behavior

Reproduces How Often

Versions

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions