Skip to content

Let's have panics with explanatory messages #67

@wkordalski

Description

@wkordalski

Firstly, thank you for this crate!

Secondly, a cosmetic programmer-experience improvement:
The documentation clearly states that inserting an empty range into a RangeMap results in panic.
And it is checked with assert!().

It would be nice if the asserts get some messages, that explain that inserting an empty range is forbidden.
This would make debugging faster and understanding panics easier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions