Skip to content

Conversation

@jcoens-openai
Copy link
Contributor

Sets submodules to use workspace lints. Added denying unwrap as a workspace level lint, which found a couple of cases where we could have propagated errors. Also manually labeled ones that were fine by my eye.

@jcoens-openai jcoens-openai requested a review from bolinfest May 7, 2025 20:10
@jcoens-openai jcoens-openai force-pushed the dev/jcoens/reduce_panics branch 3 times, most recently from 3fcedb5 to 1d43cca Compare May 7, 2025 22:14
Copy link
Collaborator

@bolinfest bolinfest left a comment

Choose a reason for hiding this comment

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

Thanks! This is a good rule to follow.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this necessary for every mod tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we want tests to use unwrap then yes

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see: I guess I would have hoped/expected the lint to disable for #[cfg(test)] by default, but I can live with this!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Would with_context from anyhow work here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure about this comment? Intentionally or written by Codex?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ha, yes, leftover model comment

@bolinfest bolinfest added the rust label May 8, 2025
@jcoens-openai jcoens-openai force-pushed the dev/jcoens/reduce_panics branch from 1d43cca to 54b2728 Compare May 8, 2025 16:36
@jcoens-openai jcoens-openai merged commit 87cf120 into main May 8, 2025
8 checks passed
@jcoens-openai jcoens-openai deleted the dev/jcoens/reduce_panics branch May 8, 2025 16:46
@github-actions github-actions bot locked and limited conversation to collaborators May 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants