Skip to content

Conversation

@penberg
Copy link
Collaborator

@penberg penberg commented Nov 20, 2025

The problem with unwrap() is that it leaves no trace if the programmer actually thought it's safe to use. Therefore, let's prefer expect() because at least it forces the programmer to leave a note. While at it, eliminate some uses of unwrap() with error handling.

@penberg penberg force-pushed the kill-unwrap branch 2 times, most recently from 195cf37 to 6a5767e Compare November 20, 2025 09:16
@penberg penberg force-pushed the kill-unwrap branch 2 times, most recently from 46caa00 to 07990df Compare November 21, 2025 09:44
@penberg penberg force-pushed the kill-unwrap branch 2 times, most recently from 4eb070f to 59add10 Compare November 21, 2025 11:50
penberg added a commit that referenced this pull request Nov 21, 2025
As preparation for #3992 that actually enforces no unwraps, remove them
from extensions.

Reviewed-by: Preston Thorpe <[email protected]>

Closes #4000
penberg added a commit that referenced this pull request Nov 22, 2025
As preparation for #3992 which prohibits use of unwrap, remove uses of
it in the incremental module.

Closes #4001
@penberg penberg force-pushed the kill-unwrap branch 2 times, most recently from 6326417 to 47370f2 Compare November 23, 2025 07:42
penberg added a commit that referenced this pull request Nov 23, 2025
…ivf.rs' from Pekka Enberg

In preparation for #3992 that disallows the use of unwrap() altogether,
let's eliminate its use from toy_vector_spare_ivf.rs.

Closes #4006
@github-actions github-actions bot added the Json label Nov 23, 2025
Instead of using registers_to_ref_values(), let's just pass a slice to
vector functions to eliminate bunch of unwraps.
penberg added a commit that referenced this pull request Nov 24, 2025
In preparation for #3992, which bans unwrap() altogether, remove
unwrap() calls from vector module.

Reviewed-by: Nikita Sivukhin (@sivukhin)

Closes #4021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant