Skip to content

rust: Accept 64 bit values for rdev#330

Merged
cgwalters merged 1 commit intocomposefs:mainfrom
cgwalters:rust-64bit-rdev
Sep 6, 2024
Merged

rust: Accept 64 bit values for rdev#330
cgwalters merged 1 commit intocomposefs:mainfrom
cgwalters:rust-64bit-rdev

Conversation

@cgwalters
Copy link
Copy Markdown
Contributor

Pairs with #329 which adapts the C side to properly accept these too.

This breaks semver, we'll need to bump that.

Pairs with composefs#329
which adapts the C side to properly accept these too.

This breaks semver, we'll need to bump that.

Signed-off-by: Colin Walters <walters@verbum.org>
Copy link
Copy Markdown
Collaborator

@jeckersb jeckersb left a comment

Choose a reason for hiding this comment

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

👍

It somehow never occurred to me that the fields on a struct-style enum variant are implicitly public. There's an RFC to allow them to be private though, and the discussion contains some tricks to achieve opaqueness using the current system. Just thought I'd mention it here in case we'd really rather hide all of the internal details of Item and only expose it through accessor methods and/or via Display.

@cgwalters
Copy link
Copy Markdown
Contributor Author

Even if the struct data wasn't public presumably we would have made a public getter be u32 though.

That said making the fields not be public we could make invalid states not be constructable though which is probably a good idea.

@cgwalters cgwalters merged commit 5081d56 into composefs:main Sep 6, 2024
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.

2 participants