Skip to content

refactor(do): make DoConnectOptions a non-exhaustive unit struct - #12

Merged
iamralch merged 1 commit into
mainfrom
do-connect-options
Sep 26, 2026
Merged

iamralch merged 1 commit into
mainfrom
do-connect-options

Conversation

@iamralch

Copy link
Copy Markdown
Contributor

Replaces pub struct DoConnectOptions { _private: () } with #[non_exhaustive] pub struct DoConnectOptions;.

Both keep code outside the crate from constructing it: parsing a do:// URL stays the only way to get one, and a field can be added later without breaking anyone. #[non_exhaustive] says that directly instead of relying on a dummy field. Nothing changes for users.

refactor:, so it triggers no release.

`#[non_exhaustive]` says what the private `_private: ()` field only
implied: code outside the crate cannot construct one, so parsing a `do://`
URL stays the only way to get it, and a field can be added later without a
breaking change. Nothing changes for users.
@iamralch
iamralch merged commit c4b7d9d into main Sep 26, 2026
4 checks passed
@iamralch
iamralch deleted the do-connect-options branch September 26, 2026 08:49
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