Skip to content

Conversation

@setrofim
Copy link
Collaborator

  • Fix derive_more issues that started being reproted by the recent versions of the crate
  • Fix clippy/compiler warnings that are now reproted by cargo

Addresses: #45

- Update the locked version of derive_more crate to 2.1.1. This has
  recently started detecting and giving errors for problems that
  were previously ignored.
- TryFrom derived implementation only works for unit variants. Since
  most of our enums have variants that contain data, this is of little
  use, and so the drive is removed (we already have custom TryFrom
  implementations where they are relevant).
- For the few enums that only have unit variants (and so the derived
  implementation may be used), add the try_from(repr) attribute. The
  attribute was always needed, however it being missing was silently
  ignore in past versions of the derive_more crate.

Signed-off-by: setrofim <[email protected]>
cargo has started giving warnings when lifetimes elided in the arguments
are hidden in the returns.

Signed-off-by: setrofim <[email protected]>
Minor issues that started being reported by the recent cargo versions.

Signed-off-by: setrofim <[email protected]>
Copy link
Collaborator

@thomas-fossati thomas-fossati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@paulhowardarm paulhowardarm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for jumping on this.

@setrofim setrofim merged commit 8d297d0 into master Jan 22, 2026
2 checks passed
@setrofim setrofim deleted the derive-fix branch January 22, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants