Skip to content

Support non copy permission values#481

Merged
augustuswm merged 2 commits into
mainfrom
support-non-copy-permission-values
Jun 11, 2026
Merged

Support non copy permission values#481
augustuswm merged 2 commits into
mainfrom
support-non-copy-permission-values

Conversation

@augustuswm

@augustuswm augustuswm commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Historically we only used Uuid and other copy types as the value type in a Permission variant. The permission derive code assumes this and fails when using something like a String. Generally we want to strongly recommend using Copy types, but something it is outside of our control we have to use a Clone type. This adds support for using Clone types.

It also fixes a bug where we would fail if ever there were multiple values in a variant. This was not intended to be supported, and we now fail to a specific error.

@augustuswm augustuswm merged commit 728dfa3 into main Jun 11, 2026
8 checks passed
@augustuswm augustuswm deleted the support-non-copy-permission-values branch June 11, 2026 21:50
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.

1 participant