palette icon indicating copy to clipboard operation
palette copied to clipboard

Refactor the error type for hext to RGB(A)

Open Ogeon opened this issue 2 years ago • 0 comments

Description

As mentioned in #347, the error type for FromStr can be improved a bit:

  • Remove the From<&'static str> implementation. It's ambiguous and not necessary for the library.
  • Remove the wrapped &str values. Each error has only one message anyway, or should have, so they can be part of the formatting instead.

Motivation

Focuses the purpose of the error type and removes ambiguity.

Ogeon avatar Aug 28 '23 10:08 Ogeon