Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-export errors from ops and unexport ops module #282

Merged
merged 7 commits into from
Jul 27, 2023

Conversation

JelteF
Copy link
Owner

@JelteF JelteF commented Jul 26, 2023

Resolves #274

Synopsis

Re-export error types from the ops module from the root of the crate. And
unexport the ops module itself.

This also moves errors that are specific to add to a separate file.
Otherwise rustdoc would show them to be included for the features:
"(add or not) and add", which is obviously equivalent to add but reads
super weird.

Checklist

  • Documentation is updated (if required)
  • Tests are added/updated (if required)
  • CHANGELOG entry is added (if required)

This also moves errors that are specific to add to a separate file.
Otherwise rustdoc would show them to be included for the features:
"(add or not) and add", which is obviously equivalent to add but reads
super weird.
@JelteF JelteF requested a review from tyranron July 26, 2023 17:52
@tyranron tyranron added this to the 1.0.0 milestone Jul 27, 2023
tyranron
tyranron previously approved these changes Jul 27, 2023
Copy link
Collaborator

@tyranron tyranron left a comment

Choose a reason for hiding this comment

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

@JelteF I've moved add module back to ops as ops::add one. This seems more logical to me since add uses types from ops, and in std they're all united under ops module too.

Please, take a look and merge it, if it's OK for you.

@JelteF
Copy link
Owner Author

JelteF commented Jul 27, 2023

I've moved add module back to ops as ops::add one. This seems more logical to me since add uses types from ops, and in std they're all united under ops module too.

Sadly this makes the feature list for WrongVariantError and BinaryError in the docs still look bad. Can you revert that part of the change? The feature list looks like this then:
image

Copy link
Collaborator

@tyranron tyranron left a comment

Choose a reason for hiding this comment

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

@JelteF done.

@tyranron tyranron merged commit 77f8002 into master Jul 27, 2023
16 checks passed
@tyranron tyranron deleted the re-export-ops-errors branch July 27, 2023 14:28
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.

Using consistent place for Error types
2 participants