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

feat: add BoxError trait to simplify the way to create generic error #627

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

Rachelint
Copy link
Contributor

Which issue does this PR close?

Closes #626

Rationale for this change

See title.

What changes are included in this PR?

See title.

Are there any user-facing changes?

None.

How does this change test

Test by ut.

Copy link
Member

@ShiKaiWi ShiKaiWi left a comment

Choose a reason for hiding this comment

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

LGTM

@ShiKaiWi
Copy link
Member

ShiKaiWi commented Feb 9, 2023

Great job!

@Rachelint Rachelint added this pull request to the merge queue Feb 9, 2023
Merged via the queue into apache:main with commit 9f0f119 Feb 9, 2023
@jiacai2050
Copy link
Contributor

jiacai2050 commented Feb 10, 2023

The real problem of this issue is we have too many trivial errors, one solution I think of is to only define error within mod.rs, add files within this module share this error.

Will create a separate issue to discuss how to do error handling better.

chunshao90 pushed a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
@Rachelint Rachelint deleted the add-box-error-trait branch May 27, 2023 12:20
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.

Too tired to create a generic error
3 participants