2.0.0 - The first release is never perfect
Breaking changes
use derive_more::SomeTrait
now imports macro only. Importing macro with its trait along is possible now viause derive_more::with_trait::SomeTrait
. (#406)- Top-level
#[display("...")]
attribute on an enum now has defaulting behavior instead of replacing when no wrapping is possible (no_variant
placeholder). (#395)
Fixed
- Associated types of type parameters not being treated as generics in
Debug
andDisplay
expansions. (#399) unreachable_code
warnings on generated code when!
(never type) is used. (#404)- Ambiguous associated item error when deriving
TryFrom
,TryInto
orFromStr
with an associated item calledError
orErr
respectively. (#410) - Top-level
#[display("...")]
attribute on an enum being incorrectly treated
as transparent or wrapping. (#395) - Omitted raw identifiers in
Debug
andDisplay
expansions. (#431) - Incorrect rendering of raw identifiers as field names in
Debug
expansions. (#431) - Top-level
#[display("...")]
attribute on an enum not working transparently for directly specified fields. (#438) - Incorrect dereferencing of unsized fields in
Debug
andDisplay
expansions. (#440)
New Contributors
Full Changelog: v1.0.0...v2.0.0