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

fix: ok_or_eyre not using track_caller #140

Merged
merged 1 commit into from
Dec 30, 2023
Merged

fix: ok_or_eyre not using track_caller #140

merged 1 commit into from
Dec 30, 2023

Conversation

ten3roberts
Copy link
Contributor

ok_or_eyre did not use track_caller, which meant the error location was incorrect compared to the equivalent anyhow::context feature

@ten3roberts ten3roberts added the C-bug Category: Something isn't working label Dec 20, 2023
@LeoniePhiline
Copy link
Contributor

Thanks, good catch!

Copy link
Contributor

@thenorili thenorili left a comment

Choose a reason for hiding this comment

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

Good catch, I'll keep a close eye out for this attribute on future reviews.

@thenorili thenorili merged commit 53ec78d into master Dec 30, 2023
29 checks passed
@thenorili thenorili deleted the fix-ok-or-eyre branch December 30, 2023 01:37
ten3roberts pushed a commit that referenced this pull request Mar 14, 2024
Fix tests and warnings from new compiler versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants